/* ===== CHAMPIONS LAS ARENAS – Premium Dark Tournament Theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-primary: #06060b;
  --bg-secondary: #0d0d14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(212, 168, 67, 0.3);

  --gold-100: #fdf3d0;
  --gold-200: #f5e08a;
  --gold-300: #f5c842;
  --gold-400: #d4a843;
  --gold-500: #8b6914;
  --gold-gradient: linear-gradient(135deg, #f5c842 0%, #d4a843 50%, #8b6914 100%);
  --gold-glow: 0 0 30px rgba(245, 200, 66, 0.15);

  --text-primary: #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.6);
  --text-muted: rgba(240, 236, 228, 0.35);

  --accent-green: #4ade80;
  --accent-red: #f87171;
  --accent-blue: #60a5fa;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated Background ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 200, 66, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 105, 20, 0.05) 0%, transparent 50%);
  animation: bgDrift 20s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-3%, 3%) scale(1.05);
  }
}

/* ── Main Container ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-300);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out;
  filter: drop-shadow(0 0 40px rgba(245, 200, 66, 0.15));
}

.hero-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 3px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.8s ease-out 0.25s backwards;
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.countdown-item {
  text-align: center;
  min-width: 72px;
}

.countdown-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-300);
  line-height: 1;
  display: block;
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.3);
  transition: var(--transition);
}

.countdown-value.tick {
  animation: countTick 0.4s ease-out;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.countdown-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.35s backwards;
}

.countdown-title span {
  color: var(--gold-400);
  font-weight: 600;
}

@keyframes countTick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
    color: var(--gold-200);
  }

  100% {
    transform: scale(1);
  }
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 5px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.tab-btn {
  flex: 1;
  max-width: 180px;
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--bg-primary);
  background: var(--gold-gradient);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.4s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== JORNADA SECTION ===== */
.jornada {
  margin-bottom: 40px;
}

.jornada-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.jornada-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--gold-gradient);
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.jornada-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.jornada-date strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== MATCH CARDS ===== */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.match-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

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

.team {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.team--away {
  flex-direction: row-reverse;
  text-align: right;
}

.team-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: var(--transition);
  overflow: hidden;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.match-card:hover .team-logo {
  border-color: rgba(212, 168, 67, 0.3);
}

.team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
  min-width: 70px;
}

.match-vs {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.match-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-400);
  background: rgba(212, 168, 67, 0.1);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.match-score {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 4px;
}

.match-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.match-status.live {
  color: var(--accent-green);
  background: rgba(74, 222, 128, 0.1);
  animation: pulse 2s infinite;
}

.match-status.finished {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.match-status.upcoming {
  color: var(--gold-400);
  background: rgba(212, 168, 67, 0.1);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ===== STANDINGS TABLE ===== */
.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.standings-header-row {
  display: grid;
  grid-template-columns: 50px 1fr repeat(8, 44px);
  padding: 14px 20px;
  background: rgba(212, 168, 67, 0.06);
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.standings-row {
  display: grid;
  grid-template-columns: 50px 1fr repeat(8, 44px);
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
  font-size: 0.88rem;
}

.standings-row:last-child {
  border-bottom: none;
}

.standings-row:hover {
  background: rgba(212, 168, 67, 0.04);
}

.standings-rank {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.standings-row:nth-child(-n+4) .standings-rank {
  color: var(--gold-300);
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.standings-team-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.standings-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.standings-team-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-stat {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
}

.standings-pts {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--gold-300);
  font-size: 1rem;
}

/* ===== TEAMS GRID ===== */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  cursor: default;
}

.team-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

.team-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: var(--transition);
  overflow: hidden;
}

.team-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card:hover .team-card-logo {
  border-color: rgba(212, 168, 67, 0.3);
  box-shadow: 0 0 15px rgba(245, 200, 66, 0.15);
}

.team-card-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.team-card-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== LIVE EMBED ===== */
.embed-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.embed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.embed-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.embed-frame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 20px;
}

.footer-organizer {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 6px;
}

.footer-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-powered {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-powered a {
  color: var(--gold-400);
  text-decoration: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 30px;
  }

  .hero-title {
    letter-spacing: 1px;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .countdown-item {
    min-width: 56px;
  }

  .tabs {
    gap: 2px;
    padding: 4px;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .match-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    text-align: center;
  }

  .team,
  .team--away {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .match-center {
    order: -1;
  }

  .standings-header-row,
  .standings-row {
    grid-template-columns: 36px 1fr repeat(3, 40px);
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .standings-hide-mobile {
    display: none;
  }

  .teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .team-card {
    padding: 14px;
  }

  .embed-frame {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .match-card {
    padding: 14px;
  }

  .teams-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 1.2rem;
}

/* ===== TOURNAMENT INFO STRIP ===== */
.info-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.45s backwards;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.info-item .label {
  color: var(--text-muted);
}

.info-item .value {
  color: var(--gold-400);
  font-weight: 600;
}

/* ===== SCORE DISPLAY ===== */
.match-card.has-score .match-vs {
  display: none;
}

.match-card:not(.has-score) .match-score {
  display: none;
}