/* ============================================
   IPTV Nordic — devices-page.css
   Shared styles for 6 device pages:
   Samsung, LG, Fire TV, Apple TV, Android Box, iPhone/iPad
   ============================================ */

/* ── 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;
}

/* ============================================================
   Hero TMDB strip (shared with kanaler/priser)
   ============================================================ */
.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;
}

/* ============================================================
   App recommendation cards (Section 4)
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

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

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

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

.app-card.recommended::before {
  content: 'ANBEFALET';
  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.25rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.app-icon {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.app-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.app-price {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
}
.app-price.is-paid { color: #b45309; font-weight: 600; }
.app-price.is-free { color: #059669; font-weight: 600; }

.app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
  font-size: 0.88rem;
  color: #374151;
  flex: 1 1 auto;
}
.app-features li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.4rem;
  line-height: 1.45;
}
.app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 16px; height: 16px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

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

/* ============================================================
   Installation steps (Section 6)
   ============================================================ */
.install-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.install-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  counter-increment: step-counter;
  transition: all 0.2s ease;
}

.install-steps li:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #93c5fd;
}

.install-steps li::before {
  content: counter(step-counter, decimal-leading-zero);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1976d2 0%, #115293 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.28);
  font-feature-settings: 'tnum';
}

.install-steps h3 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.install-steps p {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 600px) {
  .install-steps li { grid-template-columns: 44px 1fr; gap: 0.85rem; padding: 1rem; }
  .install-steps li::before { width: 40px; height: 40px; font-size: 0.95rem; }
}

/* ============================================================
   Video tutorial placeholder (Section 7)
   ============================================================ */
.video-placeholder {
  max-width: 800px;
  margin: 2rem auto 0;
  position: relative;
  background: linear-gradient(135deg, #1976d2 0%, #115293 50%, #00bcd4 100%);
  border-radius: 16px;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.video-placeholder .play-icon {
  display: inline-flex;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.video-placeholder h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

.video-placeholder p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Specs / comparison tables (reuse comparison-wrapper)
   ============================================================ */
.specs-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 480px;
  font-size: 0.93rem;
}

.specs-table th,
.specs-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}

.specs-table thead th {
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e5e7eb;
}

.specs-table thead th.col-recommended {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
}

.specs-table tbody td:first-child {
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
}

.specs-table tbody td.cell-recommended {
  background: rgba(25, 118, 210, 0.06);
  color: #0d47a1;
  font-weight: 600;
}

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

/* ============================================================
   Troubleshooting <details> (Section 10)
   ============================================================ */
.troubleshooting-list {
  max-width: 880px;
  margin: 1.5rem auto 0;
}

.troubleshooting-list details {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.troubleshooting-list details[open] {
  border-color: #f9a825;
  background: #fffbeb;
}

.troubleshooting-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.troubleshooting-list summary::-webkit-details-marker { display: none; }

.troubleshooting-list summary::before {
  content: '⚠️';
  flex-shrink: 0;
}

.troubleshooting-list summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  font-size: 1.5rem;
  color: #6b7280;
  font-weight: 400;
}

.troubleshooting-list details[open] summary::after { content: '−'; }

.troubleshooting-list .answer-body {
  padding: 0.5rem 1.25rem 1.25rem 3rem;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   Channel/feature lists used in "What can you watch"
   ============================================================ */
.what-watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}

.what-watch-grid li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #1976d2;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.93rem;
  color: #374151;
  line-height: 1.5;
}

.what-watch-grid li strong { color: #111827; }

/* ============================================================
   Cross-link other devices block
   ============================================================ */
.cross-devices-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  margin: 2rem 0 1rem;
  text-align: center;
}

.cross-devices-box h3 {
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
  color: #111827;
}

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

.cross-devices-list a {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cross-devices-list a:hover {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}

/* ============================================================
   Final CTA mega-card 3 buttons
   ============================================================ */
.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; }
}
