/* ============================================
   KODIIPTV4K.DE — GLOBAL STYLES
   Brand colors, fonts, reusable classes
   Never modify without updating CLAUDE.md
   ============================================ */

/* Brand Color Variables */
:root {
  color-scheme: dark;
  --iptv-black:  #07090F;
  --iptv-navy:   #0C1220;
  --iptv-card:   #111827;
  --iptv-cyan:   #00D4FF;
  --iptv-gold:   #F5C518;
  --iptv-muted:  #B8CAD8;
  --iptv-white:  #F0F4FF;
  --iptv-border: #1C2A3A;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; max-width: 100%; }
body { background: var(--iptv-black); color: var(--iptv-white); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px; overflow-x: clip; max-width: 100%; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Mobile section reorder — flex wrapper */
.section-reorder { display: flex; flex-direction: column; width: 100%; max-width: 100%; overflow-x: hidden; }
/* ── MOBILE: conversion-optimised funnel ──
   Hook → WM strip → Price → Channels → Sports → Movies → Stats → Reviews */
@media (max-width: 767px) {
  .section-reorder .hero            { order: 1; }
  .section-reorder .wm-urgency      { order: 2; }
  .section-reorder .plans           { order: 3; }
  .section-reorder .channels-slider { order: 4; }
  .section-reorder .sports-banner   { order: 5; }
  .section-reorder .movies          { order: 6; }
  .section-reorder .stats           { order: 7; }
  .section-reorder .reviews         { order: 8; }
}
/* ── DESKTOP ── */
@media (min-width: 768px) {
  .section-reorder .hero            { order: 1; }
  .section-reorder .wm-urgency      { order: 2; }
  .section-reorder .channels-slider { order: 3; }
  .section-reorder .sports-banner   { order: 4; }
  .section-reorder .plans           { order: 5; }
  .section-reorder .movies          { order: 6; }
  .section-reorder .stats           { order: 7; }
  .section-reorder .reviews         { order: 8; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--iptv-white);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #B8CAD8;
  line-height: 1.75;
  overflow-wrap: break-word;
}
span, li { font-family: 'Inter', sans-serif; font-weight: 500; color: #B8CAD8; overflow-wrap: break-word; }
.stat-number { font-family: 'Bebas Neue', sans-serif; }

/* Reusable Utility Classes */
.cyan  { color: var(--iptv-cyan); }
.gold  { color: var(--iptv-gold); }
.white { color: var(--iptv-white); }
.muted { color: var(--iptv-muted); }

.bg-black { background: var(--iptv-black); }
.bg-navy  { background: var(--iptv-navy); }
.bg-card  { background: var(--iptv-card); }

.section-padding { padding: 70px 40px; }
.section-padding-sm { padding: 32px 40px; }

.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--iptv-white);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #B8CAD8;
  text-align: center;
  margin-bottom: 48px;
}

.card {
  background: var(--iptv-card);
  border: 1px solid var(--iptv-border);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.25);
}

.btn-cyan {
  background: var(--iptv-cyan);
  color: var(--iptv-black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-cyan:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,212,255,0.45);
}
.btn-cyan:active { transform: translateY(0); box-shadow: none; }

/* ── MASTER CTA GOLD BUTTON ── */
.btn-gold {
  display: inline-block;
  background: #F5C518;
  color: #000000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(21px, 4.5vw, 26px);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  text-align: center;
  padding: 18px 36px;
  min-height: 56px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 0 28px rgba(245,197,24,0.38), 0 4px 12px rgba(0,0,0,0.2);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn-gold:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(245,197,24,0.6), 0 8px 20px rgba(0,0,0,0.3);
  }
}
.btn-gold:active { transform: translateY(0); }

/* Grid texture helper */
.grid-texture {
  background-image:
    linear-gradient(var(--iptv-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--iptv-border) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Horizontal scroll carousel */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* Mobile */
@media (max-width: 768px) {
  .section-padding { padding: 50px 20px; }
  .section-heading { font-size: 28px; }
  .btn-cyan { width: 100%; text-align: center; }
  .btn-gold { width: 100%; }
}

/* ── GLOBAL MOBILE TOUCH & RENDERING ── */

/* Eliminate 300ms tap delay on all interactive elements — iOS Safari, older Android */
a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  /* Section headings — readable minimum on any phone */
  .section-heading { font-size: clamp(24px, 7vw, 36px); }
  .section-subtitle { font-size: 14px; line-height: 1.65; margin-bottom: 36px; }
  .section-padding { padding: 48px 18px; }
  .section-padding-sm { padding: 28px 18px; }

  /* Premium paragraph readability on mobile — every page */
  p {
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.01em;
  }
}

/* ── PERMANENT HORIZONTAL OVERFLOW FIX ──
   overflow-x: clip on sections stops decorative pseudo-elements
   (glow orbs, gradients) from bleeding past the right edge.
   clip ≠ hidden — it does NOT create a scroll container,
   so position:sticky and mobile scroll are never affected. */
section, article { overflow-x: clip; }

/* ════════════════════════════════════════════════════
   WM 2026 URGENCY COUNTDOWN STRIP — clean 3-col layout
════════════════════════════════════════════════════ */
.wm-urgency {
  background: #080D18;
  border-top: 1px solid rgba(245,197,24,0.25);
  border-bottom: 1px solid rgba(245,197,24,0.25);
  position: relative;
  overflow: hidden;
}

/* Radial gold glow behind countdown */
.wm-urgency::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(245,197,24,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── 3-column inner layout ── */
.wmu-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 1;
}

/* ── LEFT: trophy image/logo ── */
.wmu-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Radial glow platform behind trophy */
.wmu-logo::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(245,197,24,0.45) 0%,
    rgba(245,197,24,0.18) 45%,
    transparent 72%);
  pointer-events: none;
  animation: trophyGlowPulse 2.6s ease-in-out infinite;
}

@keyframes trophyGlowPulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.15); opacity: 0.7; }
}

.wmu-trophy-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 18px rgba(245,197,24,0.8))
    drop-shadow(0 4px 32px rgba(245,197,24,0.45))
    brightness(1.1);
  animation: trophyFloat 3.5s ease-in-out infinite;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-7px); }
}

/* ── CENTER: countdown block ── */
.wmu-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wmu-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #F5C518;
  display: block;
}

.wmu-digits {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wmu-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.22);
  border-radius: 6px;
  padding: 6px 14px;
  min-width: 56px;
}

.wmu-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #F5C518;
  line-height: 1;
  letter-spacing: 1px;
  display: block;
  font-weight: 400;
}

.wmu-unit-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #F0F4FF;
  margin-top: 3px;
  display: block;
}

.wmu-colon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: rgba(245,197,24,0.35);
  line-height: 1;
  margin-bottom: 14px;
}

.wmu-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #F0F4FF;
  text-align: center;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── RIGHT: CTA button ── */
.wmu-cta {
  display: inline-block;
  background: #F5C518;
  color: #000000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 6px;
  padding: 18px 32px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(245,197,24,0.4);
  animation: wmuPulse 2.8s ease-in-out infinite;
}

@keyframes wmuPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(245,197,24,0.4); }
  50%       { box-shadow: 0 0 48px rgba(245,197,24,0.7); }
}

@media (hover: hover) {
  .wmu-cta:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(245,197,24,0.6);
    animation: none;
  }
}

/* ── MOBILE: single column, trophy hero ── */
@media (max-width: 639px) {
  .wmu-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px 24px;
    gap: 20px;
    text-align: center;
    justify-items: center;
  }

  .wmu-logo::before { width: 200px; height: 200px; }

  .wmu-trophy-img {
    width: 160px;
    height: 160px;
    filter:
      drop-shadow(0 0 28px rgba(245,197,24,0.95))
      drop-shadow(0 6px 48px rgba(245,197,24,0.55))
      brightness(1.15);
  }

  .wmu-num { font-size: 32px; }
  .wmu-box { min-width: 52px; padding: 6px 12px; }
  .wmu-colon { font-size: 26px; }

  .wmu-cta {
    width: 100%;
    max-width: 340px;
    padding: 18px 24px;
    font-size: 18px;
  }
}

/* ── TABLET 640–1023px ── */
@media (min-width: 640px) and (max-width: 1023px) {
  .wmu-inner { padding: 20px 28px; gap: 24px; }
  .wmu-trophy-img { width: 88px; height: 88px; }
  .wmu-logo::before { width: 120px; height: 120px; }
  .wmu-num { font-size: 32px; }
}
