/* ============================================
   IPTV Nordic — aeo-pages.css
   Shared styles for 3 educational/AEO pages:
   /iptv-box-guide/, /er-iptv-lovligt-i-danmark/, /hvad-er-iptv/
   ============================================ */

/* ── Hero quick-box ── */
.qb-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.85rem;
}
.qb-list li {
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}
.qb-list strong { color: #ffd54f; }
.qb-foot {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ============================================================
   TL;DR / "I korte træk" callout (used as first-section anchor)
   ============================================================ */
.tldr-box {
  max-width: 880px;
  margin: 1.5rem auto;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #fff8e1 0%, #ffffff 60%, #fffbeb 100%);
  border: 1.5px solid #f9a825;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(249, 168, 37, 0.10);
}
.tldr-box h3 {
  margin: 0 0 0.6rem;
  color: #5d4400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.tldr-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tldr-box li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.5;
}
.tldr-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 18px; height: 18px;
  background: #f9a825;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* ============================================================
   TMDB strip (reused — shorter top padding for AEO)
   ============================================================ */
.hero-tmdb-strip {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}
.strip-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}
.strip-title {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.strip-subtitle { color: #6b7280; font-size: 1rem; margin: 0; }
.tmdb-strip-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.tmdb-strip-track::-webkit-scrollbar { height: 6px; }
.tmdb-strip-track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.strip-movie-card {
  flex: 0 0 180px;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
}
.strip-movie-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.strip-movie-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-movie-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  padding: 1.5rem 0.75rem 0.75rem; color: #fff;
}
.strip-movie-rating { font-size: 0.85rem; font-weight: 600; color: #fbbf24; }
@media (max-width: 600px) {
  .strip-movie-card { flex: 0 0 140px; height: 210px; }
  .tmdb-strip-track { padding: 1rem; }
}

/* ============================================================
   Content image block
   ============================================================ */
.content-image-block {
  margin: 2.25rem auto;
  max-width: 900px;
}
.content-image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: block;
}
.content-image-block figcaption {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  padding: 0 0.5rem;
}

/* ============================================================
   IPTV Box cards (Section 4 of /iptv-box-guide/)
   ============================================================ */
.box-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.box-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.box-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
  border-color: #1976d2;
}

.box-card.is-top-pick {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.10);
}

.box-card.is-top-pick::before {
  content: 'TOP PICK';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.box-card .box-rank {
  display: inline-block;
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 0.2rem;
  letter-spacing: 0.08em;
}

.box-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.box-card .box-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1976d2;
  margin-bottom: 0.85rem;
  font-feature-settings: 'tnum';
}

.box-card .box-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #4b5563;
  flex: 1 1 auto;
}
.box-card .box-specs li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #e5e7eb;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.box-card .box-specs li:last-child { border-bottom: none; }
.box-card .box-specs strong {
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
}

.box-card .box-best-for {
  font-size: 0.85rem;
  color: #4b5563;
  font-style: italic;
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #1976d2;
}

.box-card .btn { margin-top: auto; }

/* ============================================================
   Warning grid (red-themed reasons)
   ============================================================ */
.warnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.warning-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.warning-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
}

.warning-card .warn-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}

.warning-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #7f1d1d;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.warning-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Myth-buster cards (5 misconceptions on /hvad-er-iptv/)
   ============================================================ */
.myths-list {
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.myth-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

.myth-card:hover {
  border-color: #1976d2;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.08);
}

.myth-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.myth-text { min-width: 0; }
.myth-text .myth-claim {
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}
.myth-text .myth-claim::before { content: '"'; }
.myth-text .myth-claim::after { content: '"'; }

.myth-text .myth-truth {
  color: #4b5563;
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}
.myth-text .myth-truth strong {
  color: #059669;
  font-weight: 700;
}

/* ============================================================
   Timeline (history of IPTV)
   ============================================================ */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 800px;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1976d2 0%, #00bcd4 100%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 0 1rem 0;
  position: relative;
}

.timeline-year {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1976d2;
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
  text-align: right;
  padding-right: 0;
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #1976d2;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  padding-left: 1rem;
}
.timeline-content h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  color: #111827;
}
.timeline-content p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .timeline-list::before { left: 20px; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 0.75rem; }
  .timeline-year { font-size: 1rem; padding-top: 0.35rem; }
  .timeline-year::after { right: -1px; width: 12px; height: 12px; }
}

/* ============================================================
   Sources / authority callout
   ============================================================ */
.sources-callout {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-left: 4px solid #6b7280;
  border-radius: 8px;
}

.sources-callout h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sources-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sources-callout li {
  padding: 0.25rem 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.sources-callout a {
  color: #1976d2;
  text-decoration: none;
  border-bottom: 1px dashed #1976d2;
}

/* ============================================================
   Devices grid (Section 7 of /hvad-er-iptv/)
   ============================================================ */
.devices-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.device-mini-card {
  display: block;
  padding: 1.5rem 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.device-mini-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #1976d2 0%, #00bcd4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
  border-color: transparent;
  color: inherit;
}

.device-mini-card:hover::before { opacity: 1; }

.device-mini-icon {
  font-size: 2.25rem;
  margin-bottom: 0.55rem;
  display: block;
}

.device-mini-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.device-mini-card p {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
}

/* ============================================================
   Cross-link box (other AEO pages)
   ============================================================ */
.cross-aeo-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 60%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  margin: 2rem 0 1rem;
}

.cross-aeo-box h3 {
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
  color: #111827;
  text-align: center;
}

.cross-aeo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cross-aeo-list a {
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #1565c0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.cross-aeo-list a:hover {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
  transform: translateY(-1px);
}

/* ============================================================
   Final CTA — 3 button row (reused)
   ============================================================ */
.cta-buttons-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .cta-buttons-3 { grid-template-columns: 1fr; }
}
