/* =========================================================
   troubleshooting-page.css — IPTV problems and solutions
   Used by:
     - /iptv-buffering-problem-loesninger/
   ========================================================= */

/* ---- Page-level adjustments ---- */
.page-troubleshoot .hero-quick-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* ---- Diagnosis table (Section 3) ---- */
.diagnosis-table-wrapper {
  margin: 1.5rem 0 2rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.diagnosis-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.diagnosis-table thead {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
}

.diagnosis-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.diagnosis-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.55;
}

.diagnosis-table tr:last-child td { border-bottom: none; }
.diagnosis-table tr:nth-child(even) td { background: #f8fafc; }

.diagnosis-table .symptom-1-3 { color: #059669; font-weight: 700; }
.diagnosis-table .symptom-4-plus { color: #d97706; font-weight: 700; }
.diagnosis-table .symptom-all { color: #dc2626; font-weight: 700; }

/* ---- VPN comparison grid (Section 5) ---- */
.vpn-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.vpn-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 5px solid var(--vpn-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);
}

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

.vpn-card.is-recommended { --vpn-color: #059669; }
.vpn-card.is-best-value  { --vpn-color: #2563eb; }
.vpn-card.is-premium     { --vpn-color: #7c3aed; }
.vpn-card.is-privacy     { --vpn-color: #dc2626; }

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

.vpn-card .vpn-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--vpn-color);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.vpn-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.vpn-card ul li { margin-bottom: 0.35rem; }
.vpn-card ul li strong { color: #0f172a; }

.vpn-card .vpn-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--vpn-color);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.vpn-card .vpn-link:hover { opacity: 0.9; }

/* ---- DNS instructions per-device cards (Section 5) ---- */
.dns-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.dns-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.dns-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e5e7eb;
}

.dns-card .dns-icon { font-size: 1.4rem; }

.dns-card ol {
  margin: 0;
  padding-left: 1.5rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.75;
  counter-reset: dns-step;
}

.dns-card ol li { margin-bottom: 0.35rem; }
.dns-card ol li code {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ---- DNS quick-reference highlight box ---- */
.dns-quick-ref {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.dns-ref-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 1.25rem;
}

.dns-ref-card.is-google {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #2563eb;
}

.dns-ref-card h4 {
  margin: 0 0 0.6rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
}

.dns-ref-card .dns-ip {
  display: block;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #065f46;
  margin: 0.3rem 0;
  letter-spacing: 0.02em;
}

.dns-ref-card.is-google .dns-ip { color: #1d4ed8; }

.dns-ref-card .dns-label {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

/* ---- Test result blocks (4G/5G diagnosis) ---- */
.test-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.test-result-card {
  background: #ffffff;
  border-left: 6px solid var(--result-color, #6b7280);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.test-result-card.is-isp     { --result-color: #d97706; background: #fffbeb; }
.test-result-card.is-device  { --result-color: #7c3aed; background: #faf5ff; }

.test-result-card h3 {
  margin: 0 0 0.6rem;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
}

.test-result-card h3 .arrow {
  display: inline-block;
  margin-right: 0.5rem;
}

.test-result-card p {
  margin: 0 0 0.5rem;
  color: #475569;
  line-height: 1.65;
}

.test-result-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- App ranking cards (Section 6) ---- */
.app-ranking-list {
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.app-ranking-list li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.app-ranking-list .rank-medal {
  font-size: 2rem;
  text-align: center;
  line-height: 1;
}

.app-ranking-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 700;
}

.app-ranking-list h3 a {
  color: #1d4ed8;
  text-decoration: none;
}

.app-ranking-list h3 a:hover { text-decoration: underline; }

.app-ranking-list ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Hardware recommendation cards (Section 6) ---- */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.hardware-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.hardware-card .hw-rank {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.hardware-card .hw-price {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

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

/* ---- Per-device troubleshooting list (Section 7) ---- */
.per-device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.device-trouble-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.device-trouble-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 700;
}

.device-trouble-card h3 a {
  color: #1d4ed8;
  text-decoration: none;
}

.device-trouble-card h3 a:hover { text-decoration: underline; }

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

.device-trouble-card .device-recommended-app {
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.88rem;
  color: #064e3b;
  font-weight: 600;
}

/* ---- Wi-Fi vs Ethernet comparison (Section 8) ---- */
.connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.connection-card .conn-stars {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #f59e0b;
  margin: 0.3rem 0;
}

.connection-card .conn-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.connection-card .conn-speed {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.connection-card .conn-quality {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 0.3rem;
}

/* ---- Quick fix grid (Section 13) ---- */
.quick-fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.quick-fix-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.85rem;
  align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-fix-card:hover {
  border-color: #10b981;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.12);
}

.quick-fix-card .qf-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.quick-fix-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 700;
}

.quick-fix-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}

/* ---- Anti-Freeze tech list (Section 11) ---- */
.tech-list {
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.tech-list li {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: center;
}

.tech-list .tech-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.tech-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
}

.tech-list p {
  margin: 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

/* ---- Switch indicator box (Section 12) ---- */
.switch-indicator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.switch-indicator {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
}

.switch-indicator.is-bad {
  border-top: 5px solid #dc2626;
  background: #fef2f2;
}

.switch-indicator.is-good {
  border-top: 5px solid #10b981;
  background: #ecfdf5;
}

.switch-indicator h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 700;
}

.switch-indicator ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.85;
}

.switch-indicator ul li {
  padding-left: 1.6rem;
  position: relative;
}

.switch-indicator.is-bad ul li::before {
  content: '❌';
  position: absolute;
  left: 0;
}

.switch-indicator.is-good ul li::before {
  content: '✅';
  position: absolute;
  left: 0;
}

/* ---- YouTube video embed wrapper ---- */
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: #000;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  display: block;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #475569;
  text-align: center;
}

.video-fallback a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.video-fallback a:hover { text-decoration: underline; }

/* ---- Internet speed table ---- */
.speed-table-wrapper {
  margin: 1.5rem 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.speed-table {
  width: 100%;
  border-collapse: collapse;
}

.speed-table thead {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
}

.speed-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}

.speed-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 0.95rem;
}

.speed-table tr:last-child td { border-bottom: none; }
.speed-table tr:nth-child(even) td { background: #f8fafc; }
.speed-table .quality-cell { font-weight: 700; color: #0f172a; }

/* ---- Mobile responsive ---- */
@media (max-width: 760px) {
  .vpn-comparison-grid,
  .dns-instructions,
  .test-result-grid,
  .hardware-grid,
  .per-device-list,
  .quick-fix-grid {
    grid-template-columns: 1fr;
  }

  .switch-indicator-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-table-wrapper,
  .speed-table-wrapper {
    overflow-x: auto;
  }

  .diagnosis-table,
  .speed-table {
    min-width: 540px;
  }

  .app-ranking-list li {
    grid-template-columns: 50px 1fr;
    padding: 1rem;
  }

  .app-ranking-list .rank-medal { font-size: 1.6rem; }

  .tech-list li {
    grid-template-columns: 48px 1fr;
    padding: 1rem;
  }
  .tech-list .tech-num { font-size: 1.4rem; }
}

@media (max-width: 600px) {
  .quick-fix-card {
    grid-template-columns: 40px 1fr;
    gap: 0.6rem;
    padding: 1rem;
  }

  .quick-fix-card .qf-number {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .dns-card,
  .hardware-card,
  .vpn-card,
  .device-trouble-card {
    padding: 1.2rem;
  }

  .dns-ref-card .dns-ip { font-size: 1rem; }
}
