/**
 * Homepage – Premium SEO content guide section
 */

.home-seo-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, #f6f9ff 0%, #f0f5fc 50%, #eef3fb 100%);
}

.home-seo-content__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.home-seo-content__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.home-seo-content__glow--blue {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  top: -12%;
  left: -6%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 68%);
}

.home-seo-content__glow--cyan {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  bottom: -15%;
  right: -8%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 70%);
}

.home-seo-content__container {
  position: relative;
  z-index: 1;
}

/* Intro */
.home-seo-content__intro {
  max-width: 760px;
  margin: 0 auto clamp(28px, 3.5vw, 40px);
  text-align: center;
}

.home-seo-content__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 43, 111, 0.1);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.06);
}

.home-seo-content__intro h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--iptv-text, #1a1a2e);
  margin: 0 0 14px;
  line-height: 1.25;
}

.home-seo-content__lead {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(1rem, 1.7vw, 1.0625rem);
  line-height: 1.72;
  color: var(--iptv-muted, #5c6370);
}

.home-seo-content__trust-chips {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-seo-content__trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 43, 111, 0.08);
}

.home-seo-content__trust-chips li i {
  color: var(--iptv-primary, #ffb302);
  font-size: 12px;
}

/* Layout */
.home-seo-content__layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

/* TOC sidebar */
.home-seo-content__toc-col {
  position: relative;
}

.home-seo-content__toc {
  position: sticky;
  top: calc(var(--site-header-main-h-mobile, 68px) + 16px);
  margin: 0;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 43, 111, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 28px rgba(11, 43, 111, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
  .home-seo-content__toc {
    top: calc(var(--site-header-main-h, 76px) + 20px);
  }

  .home-seo-content__article {
    padding: clamp(22px, 2.8vw, 32px);
    border-radius: 22px;
    border: 1px solid rgba(11, 43, 111, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(11, 43, 111, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.home-seo-content__toc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iptv-blue, #0b2b6f);
  margin: 0 0 10px;
  padding: 0 4px;
}

.home-seo-content__toc ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-seo-content__toc li {
  margin: 0;
}

.home-seo-content__toc a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--iptv-text, #1a1a2e);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-seo-content__toc a i {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  color: var(--iptv-blue, #0b2b6f);
  opacity: 0.75;
}

.home-seo-content__toc a span {
  min-width: 0;
  line-height: 1.35;
}

.home-seo-content__toc a:hover,
.home-seo-content__toc a:focus-visible {
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(59, 130, 246, 0.08);
}

.home-seo-content__toc a.is-active,
.home-seo-content__toc a[aria-selected="true"],
.home-seo-content__toc a[aria-current="true"] {
  color: var(--iptv-navy, #071a42);
  background: rgba(255, 179, 2, 0.14);
  border-left-color: var(--iptv-primary, #ffb302);
}

.home-seo-content__toc a.is-active i,
.home-seo-content__toc a[aria-selected="true"] i,
.home-seo-content__toc a[aria-current="true"] i {
  color: var(--iptv-primary, #ffb302);
  opacity: 1;
}

/* Article */
.home-seo-content__article {
  min-width: 0;
}

.home-seo-content__panels {
  min-width: 0;
}

/* Tab panels – progressive enhancement (all visible until JS adds --tabs) */
.home-seo-content--tabs .home-seo-content__panels {
  position: relative;
}

.home-seo-content--tabs .home-seo-content__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 0;
}

.home-seo-content--tabs .home-seo-content__panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-seo-content--tabs .home-seo-content__panel:not(.is-active) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.home-seo-content--tabs .home-seo-content__panel.is-active {
  margin-bottom: 0;
  border-bottom: none;
}

/* Panel prev / next navigation */
.home-seo-content__panel-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(20px, 2.5vw, 28px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(11, 43, 111, 0.08);
}

.home-seo-content--tabs .home-seo-content__panel-nav {
  display: flex;
}

.home-seo-content__panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 43, 111, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--iptv-blue, #0b2b6f);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-seo-content__panel-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 179, 2, 0.45);
  box-shadow: 0 6px 18px rgba(11, 43, 111, 0.08);
}

.home-seo-content__panel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.home-seo-content__panel-btn:focus-visible {
  outline: 2px solid var(--iptv-primary, #ffb302);
  outline-offset: 3px;
}

.home-seo-content__panel-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--iptv-muted, #5c6370);
  white-space: nowrap;
}

.home-seo-content__block {
  padding-bottom: clamp(20px, 2.5vw, 28px);
  margin-bottom: clamp(20px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(11, 43, 111, 0.08);
}

.home-seo-content__block--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.home-seo-content h3 {
  scroll-margin-top: 96px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--iptv-text, #1a1a2e);
  margin: 0 0 14px;
  line-height: 1.35;
}

.home-seo-content__block:first-child h3 {
  margin-top: 0;
}

.home-seo-content__h3-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--iptv-blue, #0b2b6f);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.16) 0%, rgba(255, 179, 2, 0.18) 100%);
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-seo-content__article p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--iptv-muted, #5c6370);
  margin-bottom: 14px;
  max-width: 70ch;
}

.home-seo-content__article p:last-child {
  margin-bottom: 0;
}

.home-seo-content__article a {
  color: var(--iptv-blue, #0b2b6f);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(11, 43, 111, 0.22);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.home-seo-content__article a:hover,
.home-seo-content__article a:focus-visible {
  color: var(--iptv-navy, #071a42);
  text-decoration-color: var(--iptv-primary, #ffb302);
}

/* Device mini cards */
.home-seo-content__device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
  max-width: 100%;
}

.home-seo-content__mini-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(11, 43, 111, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-seo-content__mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 2, 0.35);
  box-shadow: 0 8px 22px rgba(11, 43, 111, 0.08);
}

.home-seo-content__mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border-radius: 11px;
  font-size: 17px;
  color: var(--iptv-blue, #0b2b6f);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.14) 0%, rgba(255, 179, 2, 0.12) 100%);
}

.home-seo-content__mini-card strong {
  font-size: 14px;
  color: var(--iptv-text, #1a1a2e);
}

.home-seo-content__mini-card span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--iptv-muted, #5c6370);
}

/* Trust cards */
.home-seo-content__trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}

.home-seo-content__trust-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(11, 43, 111, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.04);
}

.home-seo-content__trust-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--iptv-blue, #0b2b6f);
  background: rgba(255, 179, 2, 0.16);
}

.home-seo-content__trust-card strong {
  font-size: 13.5px;
  color: var(--iptv-text, #1a1a2e);
}

.home-seo-content__trust-card span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--iptv-muted, #5c6370);
}

/* Steps */
.home-seo-content__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-seo-content__steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(11, 43, 111, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.home-seo-content__step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: var(--iptv-navy, #071a42);
  background: linear-gradient(135deg, #ffd055 0%, var(--iptv-primary, #ffb302) 100%);
}

.home-seo-content__step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.home-seo-content__step-body strong {
  font-size: 13px;
  color: var(--iptv-text, #1a1a2e);
}

.home-seo-content__step-body span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--iptv-muted, #5c6370);
}

/* Callouts */
.home-seo-content__callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 43, 111, 0.08);
  border-left: 4px solid var(--iptv-primary, #ffb302);
  max-width: 68ch;
  box-shadow: 0 4px 16px rgba(11, 43, 111, 0.05);
}

.home-seo-content__callout-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--iptv-blue, #0b2b6f);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.14) 0%, rgba(255, 179, 2, 0.16) 100%);
}

.home-seo-content__callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--iptv-text, #1a1a2e);
}

.home-seo-content__callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  max-width: none;
}

/* CTA */
.home-seo-content__cta {
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: clamp(20px, 2.5vw, 26px);
  border-top: 1px solid rgba(11, 43, 111, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

.home-seo-content__cta .home-btn {
  min-width: min(100%, 240px);
  min-height: 48px;
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-seo-content__btn-primary {
  background: linear-gradient(135deg, #ffd055 0%, var(--iptv-primary, #ffb302) 55%, #f5a800 100%) !important;
  color: var(--iptv-navy, #071a42) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 20px rgba(255, 179, 2, 0.32);
}

.home-seo-content__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 179, 2, 0.38);
}

.home-seo-content__btn-secondary {
  background: transparent !important;
  color: var(--iptv-blue, #0b2b6f) !important;
  border: 2px solid var(--iptv-blue, #0b2b6f) !important;
}

.home-seo-content__btn-secondary:hover {
  background: var(--iptv-blue, #0b2b6f) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Tablet / mobile */
@media (max-width: 991.98px) {
  .home-seo-content__layout {
    grid-template-columns: 1fr;
  }

  .home-seo-content__toc-col {
    order: -1;
  }

  .home-seo-content__toc {
    position: static;
    padding: 14px;
  }

  .home-seo-content__toc ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .home-seo-content__toc li {
    flex: 0 0 auto;
  }

  .home-seo-content__toc a {
    border-left: none;
    border: 1px solid rgba(11, 43, 111, 0.1);
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .home-seo-content__toc a.is-active,
  .home-seo-content__toc a[aria-selected="true"],
  .home-seo-content__toc a[aria-current="true"] {
    border-color: rgba(255, 179, 2, 0.45);
    background: rgba(255, 179, 2, 0.14);
  }

  .home-seo-content__article {
    padding: clamp(18px, 3vw, 22px);
    border-radius: 20px;
    border: 1px solid rgba(11, 43, 111, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 28px rgba(11, 43, 111, 0.06);
  }

  .home-seo-content__trust-grid,
  .home-seo-content__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .home-seo-content__device-grid {
    grid-template-columns: 1fr;
  }

  .home-seo-content__cta {
    flex-direction: column;
  }

  .home-seo-content__cta .home-btn {
    width: 100%;
    min-width: 0;
  }

  .home-seo-content__h3-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .home-seo-content {
    background: linear-gradient(180deg, #0c1528 0%, #0a1222 50%, #08101e 100%);
  }

  .home-seo-content__badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(186, 215, 255, 0.95);
  }

  .home-seo-content__intro h2 {
    color: #f1f5f9;
  }

  .home-seo-content__lead {
    color: rgba(255, 255, 255, 0.68);
  }

  .home-seo-content__trust-chips li {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(186, 215, 255, 0.92);
  }

  .home-seo-content__toc {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  }

  .home-seo-content__toc-label {
    color: rgba(186, 215, 255, 0.9);
  }

  .home-seo-content__toc a {
    color: rgba(255, 255, 255, 0.82);
  }

  .home-seo-content__toc a i {
    color: rgba(147, 197, 253, 0.9);
  }

  .home-seo-content__toc a.is-active,
  .home-seo-content__toc a[aria-selected="true"],
  .home-seo-content__toc a[aria-current="true"] {
    color: #fff;
    background: rgba(255, 179, 2, 0.12);
  }

  .home-seo-content__panel-nav {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .home-seo-content__panel-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(186, 215, 255, 0.95);
  }

  .home-seo-content__panel-btn:hover:not(:disabled) {
    border-color: rgba(255, 179, 2, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }

  .home-seo-content__panel-count {
    color: rgba(255, 255, 255, 0.55);
  }

  .home-seo-content__article {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  }

  .home-seo-content__block {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .home-seo-content h3 {
    color: #f8fafc;
  }

  .home-seo-content__h3-icon {
    color: rgba(186, 215, 255, 0.98);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.22) 0%, rgba(255, 179, 2, 0.14) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .home-seo-content__article p {
    color: rgba(255, 255, 255, 0.65);
  }

  .home-seo-content__article a {
    color: rgba(186, 215, 255, 0.95);
  }

  .home-seo-content__mini-card,
  .home-seo-content__trust-card,
  .home-seo-content__steps li,
  .home-seo-content__callout {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .home-seo-content__mini-card strong,
  .home-seo-content__trust-card strong,
  .home-seo-content__step-body strong,
  .home-seo-content__callout strong {
    color: #f8fafc;
  }

  .home-seo-content__mini-card span,
  .home-seo-content__trust-card span,
  .home-seo-content__step-body span {
    color: rgba(255, 255, 255, 0.55);
  }

  .home-seo-content__cta {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .home-seo-content__btn-secondary {
    color: rgba(186, 215, 255, 0.95) !important;
    border-color: rgba(147, 197, 253, 0.45) !important;
  }

  .home-seo-content__btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-seo-content--tabs .home-seo-content__panel {
    transition: none;
  }

  .home-seo-content__mini-card,
  .home-seo-content__cta .home-btn,
  .home-seo-content__panel-btn {
    transition: none;
  }

  .home-seo-content__mini-card:hover,
  .home-seo-content__btn-primary:hover,
  .home-seo-content__btn-secondary:hover,
  .home-seo-content__panel-btn:hover:not(:disabled) {
    transform: none;
  }
}
