/* ===========================================
   Fodbold i Dag - Global Section
   Visible on ALL pages before the footer
   =========================================== */

html {
  scroll-behavior: smooth;
}

/* --- Nav button: "Fodbold i Dag" --- */
.nav-menu a.nav-fodbold-i-dag {
  background: linear-gradient(135deg, #1a5f2a 0%, #28a745 100%);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-menu a.nav-fodbold-i-dag:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(26, 95, 42, 0.5);
  color: #fff !important;
}

.nav-menu a.nav-fodbold-i-dag i {
  margin-right: 6px;
}

/* --- Section variables --- */
.fid-section {
  --fid-primary: #1a5f2a;
  --fid-primary-dark: #0e3d1c;
  --fid-primary-light: #28a745;
  --fid-accent: #f4c430;
  --fid-bg: #1a1a2e;
  --fid-card-bg: rgba(255, 255, 255, 0.05);
  --fid-text: #fff;
  --fid-text-light: rgba(255, 255, 255, 0.6);
  --fid-border: rgba(255, 255, 255, 0.1);
  --fid-red: #dc3545;
  --fid-shadow: 0 2px 8px rgba(0,0,0,0.2);
  --fid-shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
  --fid-radius: 12px;
  --fid-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Section --- */
.fid-section {
  background: linear-gradient(180deg, var(--fid-primary-dark) 0%, #16213e 60%, var(--fid-bg) 100%);
  padding: 48px 0 56px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--fid-text);
  line-height: 1.6;
}

.fid-section *,
.fid-section *::before,
.fid-section *::after {
  box-sizing: border-box;
}

.fid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.fid-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 4px;
}

.fid-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  width: 100%;
}

.fid-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

.fid-date {
  color: var(--fid-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- League Card --- */
.fid-league-card {
  background: var(--fid-card-bg);
  border-radius: var(--fid-radius);
  box-shadow: var(--fid-shadow-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--fid-border);
}

.fid-league-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(26, 95, 42, 0.6);
  border-bottom: 1px solid var(--fid-border);
}

.fid-league-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.fid-channel-badge {
  background: var(--fid-accent);
  color: #1a1a2e;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* --- All channels row --- */
.fid-channels-row {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--fid-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.fid-channels-label {
  color: var(--fid-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fid-channels-list {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* --- Table --- */
.fid-table {
  width: 100%;
  border-collapse: collapse;
}

.fid-table thead th {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fid-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid var(--fid-border);
}

.fid-table tbody td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--fid-border);
  color: var(--fid-text);
}

.fid-table tbody tr:last-child td {
  border-bottom: none;
}

.fid-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Column widths --- */
.fid-col-time {
  width: 70px;
  white-space: nowrap;
}

.fid-col-score {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.fid-col-home {
  font-weight: 500;
}

.fid-col-away {
  font-weight: 500;
}

.fid-col-status {
  width: 70px;
  text-align: center;
}


/* --- Status indicators --- */
.fid-status-live {
  display: inline-block;
  background: var(--fid-red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fidBlink 1.2s ease-in-out infinite;
}

.fid-status-fin {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fid-status-scheduled {
  color: var(--fid-text-light);
  font-size: 0.8rem;
}

@keyframes fidBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Empty state --- */
.fid-empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--fid-card-bg);
  border-radius: var(--fid-radius);
  border: 1px solid var(--fid-border);
}

.fid-empty p {
  font-size: 1.1rem;
  color: var(--fid-text-light);
  margin: 0 0 16px;
}

.fid-empty-link {
  display: inline-block;
  padding: 10px 28px;
  background: var(--fid-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--fid-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--fid-transition);
}

.fid-empty-link:hover {
  background: var(--fid-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--fid-shadow-lg);
}

/* --- Disclaimer --- */
.fid-disclaimer {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  text-align: center;
  margin: 20px 0 0;
  font-style: italic;
}

/* --- Responsive: 768px --- */
@media (max-width: 768px) {
  .fid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .fid-title {
    font-size: 1.3rem;
  }


  .fid-table tbody td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .fid-table thead th {
    padding: 8px 12px;
  }

  .fid-league-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .fid-channels-row {
    padding: 8px 14px;
    flex-direction: column;
    gap: 2px;
  }

  .fid-channels-list {
    font-size: 0.75rem;
  }

  .nav-menu a.nav-fodbold-i-dag {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* --- Responsive: 480px --- */
@media (max-width: 480px) {
  .fid-section {
    padding: 30px 0 40px;
  }

  .fid-title {
    font-size: 1.1rem;
  }

  .fid-col-time {
    width: 50px;
  }

  .fid-table tbody td,
  .fid-table thead th {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
}
