/**
 * World Cup 2026 - Hero Section
 * WCAG compliant, logo 30px (50% kleiner)
 */

/* Import variables */
@import url('variables.css');

/* ============================================
   HERO SECTION
   ============================================ */

.wc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('/images/worldcup/backgrounds/hero-stadium-1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay */
.wc-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 80%) 0%,
    rgb(0 0 0 / 70%) 50%,
    rgb(0 0 0 / 85%) 100%
  );
  z-index: 1;
}

.wc-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--wc-space-4);
  text-align: center;

  /* Animated gradient background (WK 2026 host countries) */
  background: linear-gradient(
    135deg,
    rgb(210 35 42 / 15%),   /* Canada red */
    rgb(0 104 71 / 15%),    /* Mexico green */
    rgb(0 40 104 / 15%),    /* USA blue */
    rgb(249 168 37 / 15%)   /* Gold */
  );
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  backdrop-filter: blur(10px);
  border-radius: var(--wc-radius-xl);
  border: 1px solid rgb(255 255 255 / 20%);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wc-hero__content {
    animation: none;
    background-position: 0% 50%;
  }
}

/* Logo - GROOT & PROMINENT */
.wc-hero__logo {
  margin-bottom: var(--wc-space-3);
}

.wc-hero__logo-img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 40%));
}

@media (width >= 640px) {
  .wc-hero__logo-img {
    width: 160px;
  }
}

@media (width >= 768px) {
  .wc-hero__logo-img {
    width: 480px;
  }
}

/* Title - WIT op donker = WCAG OK */
.wc-hero__title {
  font-family: var(--wc-font-heading);
  font-size: var(--wc-text-4xl);
  font-weight: var(--wc-weight-extrabold);
  color: #fff;
  margin: 0 0 var(--wc-space-3);
  line-height: var(--wc-leading-tight);
  text-shadow: 0 2px 8px rgb(0 0 0 / 60%), 0 4px 16px rgb(0 0 0 / 40%);
}

@media (width >= 768px) {
  .wc-hero__title {
    font-size: var(--wc-text-5xl);
  }
}

.wc-hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #f9a825 0%, #f57f17 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Subtitle - WIT voor WCAG readability */
.wc-hero__subtitle {
  font-size: var(--wc-text-lg);
  color: rgb(255 255 255 / 95%);
  margin-bottom: var(--wc-space-4);
  text-shadow: 0 2px 8px rgb(0 0 0 / 50%);
}

@media (width >= 768px) {
  .wc-hero__subtitle {
    font-size: var(--wc-text-xl);
  }
}

/* Countdown Timer */
.wc-hero__countdown {
  display: flex;
  justify-content: center;
  gap: var(--wc-space-2);
  margin-bottom: var(--wc-space-5);
  flex-wrap: wrap;
}

.wc-hero__countdown--urgent .wc-countdown-item {
  border-color: rgb(249 168 37 / 60%);
  box-shadow: 0 0 0 1px rgb(249 168 37 / 25%), 0 0 24px rgb(249 168 37 / 15%);
}

.wc-countdown-closed {
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(10px);
  border-radius: var(--wc-radius-md);
  padding: var(--wc-space-3) var(--wc-space-4);
  border: 1px solid rgb(255 255 255 / 25%);
  color: #fff;
}

.wc-countdown-closed p {
  margin: 0;
  font-weight: var(--wc-weight-semibold);
}

.wc-countdown-item {
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(10px);
  border-radius: var(--wc-radius-md);
  padding: var(--wc-space-2) var(--wc-space-3);
  border: 1px solid rgb(249 168 37 / 30%);
  min-width: 80px;
}

.wc-countdown-item__number {
  display: block;
  font-size: var(--wc-text-3xl);
  font-weight: var(--wc-weight-bold);
  color: #f9a825;
  line-height: 1;
  text-shadow: 0 0 20px rgb(249 168 37 / 50%);
}

.wc-countdown-item__label {
  display: block;
  font-size: var(--wc-text-xs);
  color: rgb(255 255 255 / 80%);
  margin-top: var(--wc-space-1);
  text-transform: uppercase;
}

/* CTA Button */
.wc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--wc-space-2);
  padding: var(--wc-space-3) var(--wc-space-5);
  font-size: var(--wc-text-base);
  font-weight: var(--wc-weight-semibold);
  color: #2c3e50;
  background: linear-gradient(135deg, #f9a825 0%, #fdd835 100%);
  border-radius: var(--wc-radius-full);
  border: 2px solid #f9a825;
  box-shadow: 0 4px 12px rgb(249 168 37 / 40%);
  text-decoration: none;
  transition: all 250ms;
}

.wc-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(249 168 37 / 60%);
}

.wc-hero__cta-icon {
  width: 20px;
  height: 20px;
}

/* Stats Bar */
.wc-hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--wc-space-4);
  margin-top: var(--wc-space-6);
  flex-wrap: wrap;
}

.wc-hero__stat {
  text-align: center;
}

.wc-hero__stat-number {
  display: block;
  font-size: var(--wc-text-2xl);
  font-weight: var(--wc-weight-bold);
  color: #fff;
}

.wc-hero__stat-label {
  display: block;
  font-size: var(--wc-text-xs);
  color: rgb(255 255 255 / 70%);
  margin-top: var(--wc-space-1);
}

/* Mascots - Combined (180px) */
.wc-hero__mascots {
  position: absolute;
  left: var(--wc-space-4);
  bottom: var(--wc-space-4);
  z-index: 3;
  display: none;
}

@media (width >= 1024px) {
  .wc-hero__mascots {
    display: block;
  }
}

.wc-hero__mascot-group {
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 30%));
  transition: transform 250ms;
}

.wc-hero__mascot-group:hover {
  transform: scale(1.05) translateY(-4px);
}

/* Coachie - Hidden */
.wc-hero__coachie {
  display: none !important;
}

/* Disclaimer */
.wc-hero__disclaimer {
  position: absolute;
  bottom: var(--wc-space-1);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgb(255 255 255 / 50%);
  text-align: center;
  z-index: 2;
}

/* Mobile responsive */
@media (width <= 767px) {
  .wc-hero {
    min-height: 80vh;
  }
  
  .wc-hero__title {
    font-size: var(--wc-text-3xl);
  }
  
  .wc-countdown-item {
    min-width: 70px;
    padding: var(--wc-space-1) var(--wc-space-2);
  }
}
