/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-header);
  transition: background-color var(--transition-base), shadow var(--transition-base);
}

.header--scrolled {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__logo span {
  color: var(--accent-color);
}

.header__nav {
  display: none;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
    align-items: center;
  }
}

.header__nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
}

.header__nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.header__nav-link--active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--fs-2xl);
  cursor: pointer;
}

@media (min-width: 768px) {
  .header__menu-toggle {
    display: none;
  }
}

.header__mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-4);
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.header__mobile-nav.active {
  display: flex;
}

.header__mobile-nav a {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
}

.header__mobile-nav a:hover {
  background-color: var(--bg-secondary);
}

/* Breadcrumbs */
.breadcrumb {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__link {
  color: var(--text-muted);
}

.breadcrumb__link:hover {
  color: var(--accent-color);
}

.breadcrumb__separator {
  user-select: none;
}

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Match Card */
.match-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.match-card--live {
  border-left: 4px solid var(--success-color);
}

.match-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.match-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.match-card__status--live {
  background-color: rgba(34, 197, 94, 0.2);
  color: var(--success-color);
  animation: livePulse 2s infinite;
}

.match-card__status--completed {
  background-color: var(--bg-card);
  color: var(--text-muted);
}

.match-card__status--scheduled {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--accent-color);
}

.match-card__teams {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.match-card__team {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-card__team-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.match-card__flag {
  font-size: var(--fs-xl);
}

.match-card__name {
  font-weight: 500;
  font-size: var(--fs-base);
}

.match-card__score {
  font-size: var(--fs-xl);
  font-weight: 700;
  font-family: var(--font-heading);
}

.match-card__score--winner {
  color: var(--text-primary);
}

.match-card__score--loser {
  color: var(--text-muted);
}

.match-card__footer {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Standings Table */
.standings-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-secondary);
}

.standings-table {
  width: 100%;
  min-width: 600px;
}

.standings-table th {
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-3);
  text-align: center;
}

.standings-table th:first-child,
.standings-table th:nth-child(2) {
  text-align: left;
}

.standings-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.standings-table td:first-child,
.standings-table td:nth-child(2) {
  text-align: left;
}

.standings-table__row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.standings-table__row--qualified {
  border-left: 3px solid var(--success-color);
}

.standings-table__row--possible {
  border-left: 3px solid var(--gold-color);
}

.standings-table__row--eliminated {
  border-left: 3px solid var(--danger-color);
}

.standings-table__pos {
  font-weight: 600;
  width: 30px;
}

.standings-table__team {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.standings-table__pts {
  font-weight: 700;
  color: var(--text-primary);
}

.standings-table__form {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.form-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.form-badge--w { background-color: var(--success-color); }
.form-badge--l { background-color: var(--danger-color); }
.form-badge--d { background-color: var(--draw-color); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-gradient);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--secondary {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn--secondary:hover {
  background-color: var(--bg-input);
}

.btn--gold {
  background: var(--gold-gradient);
  color: var(--bg-primary);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn--pill {
  border-radius: var(--radius-full);
}

.btn--sm {
  font-size: var(--fs-xs);
  padding: var(--space-1) var(--space-3);
}

.btn--lg {
  font-size: var(--fs-base);
  padding: var(--space-3) var(--space-6);
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
}

.card__image {
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--bg-card);
  overflow: hidden;
}

.card__body {
  padding: var(--space-4);
}

.card__footer {
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* FAQ Accordion */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.faq__question:hover {
  background-color: var(--bg-card);
}

.faq__icon {
  font-size: var(--fs-xs);
  transition: transform var(--transition-base);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  background-color: rgba(255, 255, 255, 0.01);
  padding: 0 var(--space-4);
}

.faq__item--open .faq__answer {
  max-height: 500px;
  padding: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
}

/* Ad Slot */
.ad-slot {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

.ad-slot--hidden {
  display: none !important;
}

/* Hide if ad block has data-ad-status="unfilled" or has collapsed state */
.ad-slot:has(ins[data-ad-status="unfilled"]),
.ad-slot:has(ins[data-adsbygoogle-status="done"][style*="height: 0px"]),
.ad-slot:has(ins[data-adsbygoogle-status="done"][style*="display: none"]) {
  display: none !important;
}

.ad-slot__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.ad-slot--leaderboard {
  min-height: 90px;
  width: 100%;
}

.ad-slot--in-content {
  min-height: 250px;
  width: 100%;
}

.ad-slot--sidebar {
  min-height: 250px;
  width: 100%;
}

/* Countdown */
.countdown {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.countdown__unit {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-width: 70px;
  text-align: center;
}

.countdown__value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent-color);
  display: block;
}

.countdown__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Widgets */
.widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.widget__title {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--text-muted);
}

/* Hero */
.hero {
  padding: var(--space-12) 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent), var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

/* Tabs */
.tabs {
  margin-bottom: var(--space-6);
}

.tabs__header {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  gap: var(--space-4);
}

.tabs__btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tabs__btn:hover {
  color: var(--text-primary);
}

.tabs__btn--active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.tabs__content {
  display: none;
  padding-top: var(--space-4);
}

.tabs__content--active {
  display: block;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 14, 39, 0.95);
  z-index: var(--z-modal);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  backdrop-filter: blur(8px);
}

.search-modal.active {
  display: flex;
}

.search-modal__inner {
  width: 100%;
  max-width: 600px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.search-modal__search-bar {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-3);
  background-color: var(--bg-card);
}

.search-modal__input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--fs-lg);
  padding: var(--space-2);
  outline: none;
}

.search-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-xl);
  cursor: pointer;
  padding: var(--space-2);
}

.search-modal__results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-2);
}

.search-modal__result {
  display: flex;
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background-color var(--transition-fast);
}

.search-modal__result:hover {
  background-color: var(--bg-card);
  text-decoration: none;
}

/* Tags & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background-color: var(--bg-card);
  color: var(--text-muted);
}

.tag--live {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
}

.tag--group {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--accent-color);
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
  z-index: 101;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Formation Pitch */
.formation {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 500px;
  margin: 0 auto;
  background-color: #1b4d3e;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.formation__pitch-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.formation__mid-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.formation__mid-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
}

.formation__penalty-area {
  position: absolute;
  left: 50%;
  width: 200px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.formation__penalty-area--top {
  top: 0;
  border-top: none;
}

.formation__penalty-area--bottom {
  bottom: 0;
  border-bottom: none;
}

.formation__player {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.formation__player-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 2px solid white;
  margin-bottom: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.formation__player-name {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* Video lazy-load overlay */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.video-embed__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--transition-base);
}

.video-embed:hover .video-embed__overlay {
  filter: brightness(0.8);
}

.video-embed__play-btn {
  width: 68px;
  height: 48px;
  background-color: rgba(239, 68, 68, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.video-embed:hover .video-embed__play-btn {
  background-color: var(--danger-color);
  transform: scale(1.1);
}

/* Stats Comparison Bar */
.stats-comparison {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stats-comparison__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stats-comparison__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.stats-comparison__bars {
  display: flex;
  height: 8px;
  background-color: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stats-comparison__bar {
  height: 100%;
  transition: width var(--transition-slow);
}

.stats-comparison__bar--home {
  background-color: var(--accent-color);
}

.stats-comparison__bar--away {
  background-color: var(--gold-color);
  margin-left: auto;
}

/* Poll Option */
.poll {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.poll__option {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.poll__option:hover {
  border-color: var(--accent-color);
}

.poll__option-content {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: var(--fs-sm);
}

.poll__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(59, 130, 246, 0.1);
  width: 0%;
  transition: width var(--transition-slow);
}

/* Footer */
.footer {
  background-color: #06091a;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer__title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: var(--fs-base);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: var(--text-muted);
}

.footer__link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--text-primary);
}
