/* =============================================
   WC2026 TRAVEL GUIDE — Main Stylesheet
   ESPN x FIFA Energy · Bold · High Contrast
   ============================================= */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ---- Scrollbar Hide ---- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Hero Section ---- */
.hero-section {
  min-height: 580px;
  position: relative;
}

.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

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

/* ---- Countdown ---- */
.countdown-container {
  display: inline-flex;
}

#countDays, #countHours, #countMins, #countSecs {
  min-width: 70px;
  display: block;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---- Category Buttons ---- */
.category-btn {
  color: #6b7280;
  background: white;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.category-btn.active {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

a.category-btn { text-decoration: none; }

/* ---- City Cards ---- */
.city-card {
  text-decoration: none;
  display: block;
  background: white;
}

.city-card:hover .card-arrow {
  transform: translateX(4px);
}

/* ---- Match Cards ---- */
.match-card {
  border-left: 4px solid var(--city-primary, #dc2626);
}

/* ---- Neighborhood Tags ---- */
.neighborhood-tag {
  transition: all 0.2s;
}

.neighborhood-tag:hover {
  background: var(--city-primary, #dc2626);
  color: white !important;
}

/* ---- Affiliate Cards ---- */
.affiliate-card {
  transition: all 0.2s;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---- Experience Cards ---- */
.experience-card {
  transition: all 0.3s;
}

.experience-card:hover {
  transform: translateY(-5px);
}

/* ---- Stat Items ---- */
.stat-item {
  position: relative;
  padding: 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: #e5e7eb;
}

/* ---- Nav Search Dropdown ---- */
.nav-search-results {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 90vw);
  z-index: 9999;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  background: white;
  overflow: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fef2f2; }

.search-result-item .city-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Language Toggle ---- */
.lang-toggle {
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ---- Buttons ---- */
.btn-primary, .btn-secondary {
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { transform: scale(1.04); }

/* ---- City Hero ---- */
.city-hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

/* ---- Sidebar sticky ---- */
@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky;
    top: 5rem;
  }
}

/* ---- Aspect ratio for video ---- */
.aspect-video {
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
  #countDays, #countHours, #countMins, #countSecs {
    min-width: 52px;
    font-size: 2rem !important;
  }
  .hero-section { min-height: 520px; }
}

/* ---- Print ---- */
@media print {
  nav, footer, .sticky { display: none; }
}

/* ---- Smooth transitions for i18n ---- */
[data-i18n], [data-i18n-placeholder] {
  transition: opacity 0.15s ease;
}

.lang-fade-out { opacity: 0; }
.lang-fade-in { opacity: 1; }

/* ---- City page border accents ---- */
.city-border { border-left-color: var(--city-primary, #dc2626) !important; }
.city-accent { color: var(--city-primary, #dc2626) !important; }
.city-bg { background-color: var(--city-primary, #dc2626) !important; }
.city-gradient {
  background: linear-gradient(135deg, var(--city-primary, #dc2626), var(--city-secondary, #ff6b35)) !important;
}

/* ---- ESPN-style score ticker feel for badges ---- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: white;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.live-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

/* Hero video background - mobile fallback */
@media (max-width: 768px) {
  #hero-video-wrapper { display: none; }
  .hero-section { background: linear-gradient(135deg, #0a0f1e 0%, #1a0505 50%, #0a0f1e 100%) !important; }
}
/* ======= CITY CAROUSEL — Mobile Scroll / Desktop Grid ======= */

/* Desktop grid */
.city-grid-desktop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1279px) { .city-grid-desktop { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) { .city-grid-desktop { grid-template-columns: repeat(2, 1fr); } }

/* Mobile: hide desktop grid, show carousel */
@media (max-width: 639px) {
  .city-grid-desktop { display: none !important; }
  .city-carousel-wrapper { display: block; }
}
@media (min-width: 640px) {
  .city-carousel-wrapper { display: none; }
}

/* Carousel track */
.city-carousel-wrapper {
  position: relative;
}
.city-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 16px 4px;
}
.city-carousel-track::-webkit-scrollbar { display: none; }
.city-carousel-track .city-card {
  flex: 0 0 78vw;
  max-width: 300px;
  scroll-snap-align: start;
}

/* Nav dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: #dc2626;
  width: 20px;
  border-radius: 3px;
}

/* Swipe hint */
.swipe-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* ======= BRAND LOGO BELT ======= */
.brand-belt-section {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.brand-belt-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  padding: 0 0 0 20px;
  white-space: nowrap;
}

.brand-belt-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.brand-belt-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: beltScroll 35s linear infinite;
  width: max-content;
}

.brand-belt-track:hover {
  animation-play-state: paused;
}

.brand-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo-item img {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: opacity 0.2s, filter 0.2s;
}

.brand-logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes beltScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile: hide label to save space */
@media (max-width: 640px) {
  .brand-belt-label { display: none; }
  .brand-belt-section { padding: 12px 0; }
  .brand-belt-track { gap: 28px; animation-duration: 25s; }
  .brand-logo-item img { height: 26px; }
}

/* Force horizontal belt — override any block defaults */
.brand-belt-track {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}
.brand-logo-item {
  display: inline-flex !important;
  flex-shrink: 0 !important;
}
.brand-logo-item img {
  display: inline-block !important;
}
