/* 66 LOTTERY - EXTERNAL STYLESHEET - OPTIMIZED FOR PERFORMANCE */

:root {
  --primary-red: #E31E24;
  --primary-dark: #B71C1C;
  --accent-gold: #FFD700;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --gray: #E0E0E0;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-red: 0 8px 24px rgba(227,30,36,0.2);
  --font-primary: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ENHANCED HERO ELEMENTS */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(227,30,36,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
  will-change: transform;
}

.hero-content h1 {
  animation: fadeInUp 0.8s ease;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(227,30,36,0.15);
  z-index: -1;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* HOVER EFFECTS */
.logo:hover {
  transform: scale(1.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link:hover::after {
  width: 100%;
}

.cta-button,
.btn-primary {
  transition: all 0.3s ease;
}

.cta-button:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(227,30,36,0.35);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-red);
  color: white;
}

/* HEADER SCROLLED STATE */
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header {
  transition: all 0.3s ease;
}

/* TRUST BADGES */
.trust-section {
  padding: 3rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-badge {
  text-align: center;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.trust-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.trust-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* SECTIONS */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(227,30,36,0.1);
  color: var(--primary-red);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CARDS */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: background 0.3s ease;
}

.card:hover {
  background: #ffe5e5;
}

.blue-link {
  color: #007BFF;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blue-link:hover {
  color: var(--primary-red);
}

/* IMAGES */
.center-image {
  text-align: center;
  margin: 2rem 0;
}

.center-image img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.center-image img:hover {
  transform: scale(1.02);
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid var(--gray);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-lg);
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(227,30,36,0.1), rgba(227,30,36,0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.game-card:hover .game-icon {
  background: rgba(255,255,255,0.2);
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.game-card:hover .game-title {
  color: white;
}

.game-desc {
  color: var(--text-gray);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.game-card:hover .game-desc {
  color: rgba(255,255,255,0.9);
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--gray);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.feature-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-desc {
  color: var(--text-gray);
  line-height: 1.7;
}

/* HERO VISUAL & STATS */
.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.3s backwards;
  max-width: 100%;
  margin: 0 auto;
}

.hero-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 16px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid var(--gray);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-red);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.btn-white {
  background: white;
  color: var(--primary-red);
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* FOOTER */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .cta-content h2 {
    font-size: 2rem;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3rem 1rem;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .faq-question {
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .faq-answer {
    padding: 0 1.5rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .game-title {
    font-size: 1.25rem;
  }
  .feature-title {
    font-size: 1.15rem;
  }
}
