/* Premium Charity Raffle Theme - High-End Design */

/* CSS Custom Properties for Premium Design */
:root {
  /* Premium Color Palette */
  --charity-primary: #1a472a;        /* Deep forest green */
  --charity-primary-light: #2d5a3d;  /* Lighter forest green */
  --charity-primary-dark: #0f2e1a;   /* Darker forest green */
  --charity-accent: #d4af37;         /* Gold accent */
  --charity-accent-light: #e6c659;   /* Light gold */
  --charity-accent-dark: #b8941f;    /* Dark gold */
  
  /* Neutral Palette */
  --charity-white: #ffffff;
  --charity-black: #0a0a0a;
  --charity-gray-50: #fafafa;
  --charity-gray-100: #f5f5f5;
  --charity-gray-200: #e5e5e5;
  --charity-gray-300: #d4d4d4;
  --charity-gray-400: #a3a3a3;
  --charity-gray-500: #737373;
  --charity-gray-600: #525252;
  --charity-gray-700: #404040;
  --charity-gray-800: #262626;
  --charity-gray-900: #171717;
  
  /* Status Colors */
  --charity-success: #16a34a;
  --charity-warning: #ea580c;
  --charity-error: #dc2626;
  --charity-info: #0ea5e9;
  
  /* Typography */
  --charity-font-primary: var(--charity-font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --charity-font-display: var(--charity-font-display, 'Playfair Display', Georgia, serif);
  --charity-font-mono: var(--charity-font-mono, 'JetBrains Mono', 'Fira Code', monospace);
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  --space-40: 10rem;    /* 160px */
  --space-48: 12rem;    /* 192px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

/* Premium Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--raffle-primary-light) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(16, 110, 60, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(16, 110, 60, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

@keyframes patternFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.hero-content-wrapper {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 80vh;
  padding: var(--space-16) 0;
  position: relative;
  z-index: 2;
}

/* Hero Main Content */
.hero-main {
  color: var(--raffle-text);
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f4d03f, #f7dc6f);
  color: var(--raffle-text);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--raffle-spacing-md);
  box-shadow: var(--raffle-shadow-sm);
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--raffle-spacing-md);
  color: var(--raffle-primary-dark);
  letter-spacing: -0.02em;
}

.title-line-1 {
  display: block;
  color: var(--raffle-primary-dark);
}

.title-line-2 {
  display: block;
  color: var(--raffle-primary-dark);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--raffle-text-light);
  margin-bottom: var(--raffle-spacing-lg);
  max-width: 700px;
}

/* Premium Countdown Timer */
.countdown-section {
  margin-bottom: var(--raffle-spacing-lg);
}

.countdown-header {
  margin-bottom: var(--raffle-spacing-md);
  text-align: center;
}

.countdown-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--raffle-primary-dark);
  margin-bottom: var(--raffle-spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-date {
  font-size: 1rem;
  color: var(--raffle-text-light);
  margin: 0;
}

.countdown-timer {
  display: flex;
  gap: var(--raffle-spacing-sm);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--raffle-bg);
  border: 1px solid rgba(16, 110, 60, 0.1);
  border-radius: 16px;
  padding: var(--raffle-spacing-sm) var(--raffle-spacing-md);
  min-width: 80px;
  box-shadow: var(--raffle-shadow-sm);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--raffle-primary-dark);
  line-height: 1;
  margin-bottom: var(--raffle-spacing-xs);
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--raffle-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: 700;
  color: var(--raffle-primary);
  margin: 0 var(--raffle-spacing-xs);
  opacity: 0.7;
}

/* Premium CTA Buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--raffle-spacing-sm);
  margin-bottom: var(--raffle-spacing-lg);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--raffle-primary), var(--raffle-primary-dark));
  color: #ffffff;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(16, 110, 60, 0.3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
  justify-content: flex-start;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero.btn-primary {
  background: linear-gradient(135deg, var(--raffle-primary), var(--raffle-primary-dark));
  color: #ffffff;
  border: none;
}

.btn-hero.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 110, 60, 0.4);
  color: #ffffff;
}

.btn-hero.btn-primary:active {
  transform: translateY(-1px);
}

.btn-hero.btn-secondary {
  background: linear-gradient(135deg, var(--raffle-primary), var(--raffle-primary-dark));
  color: #ffffff;
  border: none;
}

.btn-hero.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 110, 60, 0.4);
  color: #ffffff;
}

.btn-hero.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ffffff;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  color: #ffffff;
}

.btn-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.btn-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
  color: #ffffff;
  margin-top: 0.125rem;
}

.btn-arrow {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  flex-shrink: 0;
}

.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: var(--raffle-spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--raffle-spacing-xs);
  font-size: 0.875rem;
  color: var(--raffle-text-light);
  font-weight: 500;
}

.trust-icon {
  font-size: 1.125rem;
}

/* Hero Prizes Section */
.hero-prizes {
  position: relative;
}

.prizes-container {
  background: var(--raffle-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 110, 60, 0.1);
  border-radius: 20px;
  padding: var(--raffle-spacing-lg);
  box-shadow: var(--raffle-shadow-md);
}

.prizes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--raffle-spacing-md);
}

.prizes-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--raffle-primary-dark);
  margin: 0;
}

.prizes-controls {
  display: flex;
  gap: var(--space-2);
}

.prize-nav {
  width: 40px;
  height: 40px;
  background: var(--raffle-primary-light);
  border: 1px solid rgba(16, 110, 60, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--raffle-primary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.prize-nav:hover {
  background: var(--raffle-primary);
  color: #ffffff;
  border-color: var(--raffle-primary);
  transform: scale(1.05);
}

.prizes-carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.prizes-track {
  display: flex;
  gap: var(--space-4);
  transition: transform var(--transition-base);
}

.prize-card {
  flex: 0 0 280px;
  background: var(--charity-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
}

.prize-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.prize-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.prize-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.prize-card:hover .prize-image img {
  transform: scale(1.05);
}

.prize-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--charity-gray-100) 0%, var(--charity-gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.prize-overlay {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--charity-accent);
  color: var(--charity-primary-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.prize-info {
  padding: var(--space-5);
}

.prize-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charity-gray-900);
  margin: 0 0 var(--space-2) 0;
  line-height: 1.3;
}

.prize-donor {
  font-size: 0.875rem;
  color: var(--charity-gray-600);
  margin: 0;
}

.prizes-footer {
  margin-top: var(--space-6);
  text-align: center;
}

.view-all-prizes {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--charity-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.view-all-prizes:hover {
  color: var(--charity-accent-light);
  transform: translateX(4px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-arrow {
  color: var(--charity-accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .hero-prizes {
    order: -1;
  }
  
  .countdown-timer {
    justify-content: center;
  }
  
  .hero-actions {
    align-items: center;
  }
  
  .btn-hero {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 0 var(--space-4);
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .countdown-timer {
    gap: var(--space-2);
  }
  
  .countdown-item {
    min-width: 60px;
    padding: var(--space-3) var(--space-4);
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .prize-card {
    flex: 0 0 240px;
  }
  
  .trust-indicators {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    gap: var(--space-3);
  }
  
  .btn-hero {
    padding: var(--space-4) var(--space-6);
    min-height: 60px;
  }
  
  .btn-text {
    align-items: center;
  }
  
  .countdown-item {
    min-width: 50px;
    padding: var(--space-2) var(--space-3);
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .prize-card {
    flex: 0 0 200px;
  }
}

/* Enhanced Button Styling */
.btn-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-10);
  border-radius: var(--radius-2xl);
  font-weight: 600;
  font-size: 1.25rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
  min-height: 80px;
  width: 100%;
  max-width: 500px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--charity-accent) 0%, var(--charity-accent-dark) 100%);
  color: var(--charity-primary-dark);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--charity-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Advanced Visual Effects */
.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(26, 71, 42, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated particles effect */
@keyframes float-particles {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

.hero-pattern::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float-particles 20s ease-in-out infinite;
}

/* Glassmorphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium hover effects */
.premium-hover {
  transition: all var(--transition-base);
}

.premium-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Shimmer effect for CTAs */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Placeholder prize cards */
.placeholder-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  opacity: 0.8;
}

.placeholder-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.7;
  display: block;
  text-align: center;
}

.prize-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  min-height: 200px;
}

.prize-content {
  padding: var(--space-4);
  color: var(--charity-white);
}

.prize-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--charity-white);
}

.prize-description {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}
