/* =========================================================
   sport-pages.css — Shared styles for sport money pages
   Used by:
     - /sport-iptv-nordic/
     - /premier-league-iptv/
     - /champions-league-streaming/
   ========================================================= */

/* ---- Sport hero quick-box adjustments ---- */
.page-sport .hero-quick-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ---- Tournaments grid (sport-iptv-nordic primary use) ---- */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.tournament-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tournament-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.tournament-card .tc-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.tournament-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-weight: 700;
}

.tournament-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tournament-card ul li { margin-bottom: 0.35rem; }

.tournament-card .tc-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
  padding-bottom: 1px;
}

.tournament-card .tc-link:hover {
  color: #1d4ed8;
  border-bottom-style: solid;
}

/* ---- Team cards (premier-league + champions-league) ---- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 6px solid var(--team-color, #2563eb);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.team-card.tc-red    { --team-color: #dc2626; }
.team-card.tc-blue   { --team-color: #1d4ed8; }
.team-card.tc-white  { --team-color: #94a3b8; }
.team-card.tc-yellow { --team-color: #f59e0b; }
.team-card.tc-black  { --team-color: #1e293b; }
.team-card.tc-purple { --team-color: #7c3aed; }
.team-card.tc-green  { --team-color: #059669; }

.team-card .team-emoji {
  font-size: 1.85rem;
  margin-right: 0.4rem;
}

.team-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.team-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 0.85rem;
  font-size: 0.95rem;
}

.team-card dt {
  color: #64748b;
  font-weight: 500;
}

.team-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

.team-card .team-titles {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.9rem;
  color: #475569;
}

.team-card .team-titles strong {
  color: var(--team-color);
  font-weight: 800;
}

/* ---- Compact teams list (remaining 14 EPL teams etc.) ---- */
.teams-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  list-style: none;
}

.teams-compact li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}

/* ---- Broadcaster grid (Hvor sendes...) ---- */
.broadcaster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.broadcaster-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  border-top: 4px solid #2563eb;
}

.broadcaster-card.bc-sky    { border-top-color: #0ea5e9; }
.broadcaster-card.bc-tnt    { border-top-color: #dc2626; }
.broadcaster-card.bc-dazn   { border-top-color: #f59e0b; }
.broadcaster-card.bc-canal  { border-top-color: #1e293b; }
.broadcaster-card.bc-tv2    { border-top-color: #ef4444; }
.broadcaster-card.bc-viaplay{ border-top-color: #7c3aed; }
.broadcaster-card.bc-movistar{ border-top-color: #059669; }

.broadcaster-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 700;
}

.broadcaster-card .bc-region {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.broadcaster-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.broadcaster-card ul li { margin-bottom: 0.25rem; }

/* ---- Schedule / Season calendar ---- */
.schedule-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border-left: 3px solid #2563eb;
  padding-left: 1.5rem;
}

.schedule-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px dashed #e5e7eb;
}

.schedule-list li::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #2563eb;
}

.schedule-list li:last-child { border-bottom: none; }

.schedule-list .sl-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.schedule-list .sl-event {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 500;
}

/* ---- Format info box (Champions League new format) ---- */
.format-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.format-box h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
}

.format-box ul {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.format-box ul li strong {
  color: #ffffff;
  font-weight: 700;
}

/* ---- Sport sub-section emoji headers (for tournaments) ---- */
.sport-subsection {
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid #e5e7eb;
}

.sport-subsection h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #0f172a;
  font-weight: 700;
}

.sport-subsection h3 .ss-emoji { font-size: 1.6rem; }

.sport-subsection p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.sport-subsection ul.sl-list {
  margin: 0.75rem 0;
  padding-left: 1.4rem;
  color: #1e293b;
  line-height: 1.8;
}

.sport-subsection ul.sl-list li strong {
  color: #0f172a;
  font-weight: 700;
}

/* ---- Bedste apps box (Section 9) ---- */
.best-apps-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
}

.best-apps-box h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: #0f172a;
  font-weight: 700;
}

.best-apps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.best-apps-list li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.best-apps-list li:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.10);
}

.best-apps-list a {
  display: block;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.best-apps-list a:hover { color: #2563eb; }

.best-apps-list .ba-platform {
  font-size: 0.85rem;
  color: #64748b;
  display: block;
}

/* ---- Tekniske krav cards (Section 11) ---- */
.tech-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tech-req-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.tech-req-card .tr-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.tech-req-card .tr-label {
  display: block;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

/* ---- Compatibility grid alias (reuse from devices-page.css if present) ---- */
.page-sport .compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

/* ---- Mobile responsive ---- */
@media (max-width: 760px) {
  .tournaments-grid,
  .teams-grid,
  .broadcaster-grid {
    grid-template-columns: 1fr;
  }

  .team-card dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .team-card dt {
    margin-top: 0.5rem;
    font-size: 0.85rem;
  }

  .team-card dd {
    margin-bottom: 0.25rem;
  }

  .schedule-list {
    padding-left: 1rem;
  }

  .schedule-list li::before {
    left: -1.5rem;
  }

  .format-box {
    padding: 1.5rem;
  }

  .tech-req-card .tr-value {
    font-size: 1.5rem;
  }

  .best-apps-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .teams-compact {
    grid-template-columns: 1fr 1fr;
  }

  .sport-subsection h3 {
    font-size: 1.2rem;
  }
}
