/*
Theme Name: GeneratePress OmniStream Child
Description: Lean, zero-plugin child theme for OmniStream IPTV Player.
Template: generatepress
Version: 1.0.0
Author: OmniStream
*/

/* ==========================================================================
   Original OmniStream Styles
   ========================================================================== */

:root {
  --bg: #0b0b10;
  --bg-elevated: #11112a;
  --card: #151522;
  --text: #e6e6f0;
  --muted: #a0a0b5;
  --brand-blue: #4da3ff;
  --brand-purple: #b05cff;
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-elevated), var(--bg));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-purple);
}

p,
ul,
ol {
  margin-top: 0;
}

strong {
  color: var(--text);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 84px;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 0 1 auto;
}

.brand img,
.nav img {
  width: auto;
  height: 50px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.15;
}

.brand-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.3rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-left: auto;
  min-width: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.hero {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 3rem 0 4.5rem;
}

.hero-card {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 3rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(90px, 16vw, 250px);
  max-width: 100%;
  max-height: min(25vh, 250px);
  object-fit: contain;
  margin: 0 auto 1.5rem;
}

.hero-copy {
  max-width: 700px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

h1, h2, h3 {
  margin-top: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.hero p,
.container > p,
.card p,
.legal-section p,
.legal-section li,
.muted {
  color: var(--muted);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 30px rgba(176, 92, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(176, 92, 255, 0.45);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid > * {
  grid-column: span 4;
}

.grid.two-up > * {
  grid-column: span 6;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card.notice-card {
  margin-top: 2.5rem;
  border-left: 4px solid var(--brand-blue);
}

.section-divider {
  height: 3px;
  width: 64px;
  background: var(--brand-gradient);
  border-radius: 999px;
  margin: 1rem 0 2rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section p {
  max-width: 900px;
}

.legal-section ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .grid > *,
  .grid.two-up > * {
    grid-column: span 6;
  }

  .hero-card {
    padding: 2.25rem;
  }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav {
    width: min(var(--container), calc(100% - 1.25rem));
    min-height: 76px;
    padding: 0.75rem 0;
    position: relative;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.85rem;
    border-radius: 20px;
    background: rgba(21, 21, 34, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    min-height: 48px;
  }

  footer a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.25rem;
  }

  .container,
  .hero {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .container {
    padding: 2.5rem 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-card {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .hero-logo {
    width: clamp(60px, 18vw, 100px);
    max-height: 100px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .grid > *,
  .grid.two-up > * {
    grid-column: 1 / -1;
  }

  .card {
    padding: 1.2rem;
  }

  h2 {
    margin-top: 2.25rem;
  }

  footer {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .brand img,
  .nav img {
    height: 42px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .hero-card {
    padding: 1.25rem;
  }
}

/* ── Google Play Button ──────────────────────────────── */
.gplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.gplay-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.32);
}
.gplay-btn svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.gplay-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.gplay-btn-text span:first-child {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gplay-btn-text span:last-child {
  font-size: 1rem;
  font-weight: 700;
}

/* ── Footer social link ──────────────────────────────── */
.footer-social {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-social:hover {
  color: #1877f2;
}

/* ── Blog page styles ────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77,163,255,0.2);
}
.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(77,163,255,0.12);
  color: var(--brand-blue);
  width: fit-content;
}
.blog-tag.guide { background: rgba(176,92,255,0.12); color: var(--brand-purple); }
.blog-tag.update { background: rgba(77,163,255,0.12); color: var(--brand-blue); }
.blog-tag.news { background: rgba(0,200,120,0.12); color: #00c878; }
.blog-card h3 {
  margin: 0;
  font-size: 1.1rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-card .blog-date {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}
.blog-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: 0.5rem;
  transition: gap 0.2s ease;
}
.blog-card:hover .read-more { gap: 0.55rem; }

/* Blog post full-page */
.blog-post {
  max-width: 740px;
}
.blog-post h2 {
  margin-top: 2.5rem;
}
.blog-post p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.blog-post ul {
  color: var(--muted);
  padding-left: 1.2rem;
  line-height: 1.75;
}
.blog-post .post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--brand-blue); }

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


/* ==========================================================================
   Knowledge Base Accordion Styles (from knowledgebase.html)
   ========================================================================== */
.kb-section {
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  overflow: hidden;
}
.kb-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.kb-toggle:hover {
  background: rgba(255,255,255,0.04);
}
.kb-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kb-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.kb-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.kb-section.is-open .kb-chevron {
  transform: rotate(180deg);
}
.kb-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.kb-section.is-open .kb-body {
  grid-template-rows: 1fr;
}
.kb-body-inner {
  overflow: hidden;
}
.kb-content {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
}
.kb-answer {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.kb-answer p {
  margin-bottom: 0.65rem;
}
.kb-answer ol,
.kb-answer ul {
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}
.kb-answer li {
  margin-bottom: 0.35rem;
}
.kb-answer strong {
  color: var(--text);
}
.kb-tip {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(77, 163, 255, 0.07);
  border-left: 3px solid var(--brand-blue);
  color: var(--muted);
  font-size: 0.9rem;
}
.kb-tip strong {
  color: var(--brand-blue);
}
.kb-warn {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(176, 92, 255, 0.07);
  border-left: 3px solid var(--brand-purple);
  color: var(--muted);
  font-size: 0.9rem;
}
.kb-warn strong {
  color: var(--brand-purple);
}
.kb-sub {
  margin-top: 1.25rem;
}
.kb-sub h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 0.4rem;
  background: none;
  -webkit-text-fill-color: var(--muted);
}

/* ==========================================================================
   WordPress & GeneratePress Integration Overrides
   ========================================================================== */
body.site,
.site.grid-container,
.site-content,
.inside-article,
.separate-containers .inside-article,
.one-container .site-content {
  background: transparent !important;
  color: var(--text);
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* Map WordPress wp_nav_menu ul/li inside .nav-links cleanly */
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links li {
  margin: 0;
  padding: 0;
}
.nav-links li.current-menu-item > a,
.nav-links li.current_page_parent > a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 760px) {
  .nav-links ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
  }
}

/* Dark Theme Contact Form Styling */
.os-contact-form {
  max-width: 600px;
  margin: 2rem 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.os-contact-form input[type="text"],
.os-contact-form input[type="email"],
.os-contact-form input[type="number"],
.os-contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(11, 11, 16, 0.8);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.os-contact-form input:focus,
.os-contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}
.os-captcha-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.os-captcha-box p {
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.os-captcha-box input {
  margin-bottom: 0 !important;
}
.os-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.os-alert.error {
  background: rgba(234, 67, 53, 0.15);
  border: 1px solid rgba(234, 67, 53, 0.4);
  color: #ff8a80;
}
.os-alert.success {
  background: rgba(0, 200, 120, 0.15);
  border: 1px solid rgba(0, 200, 120, 0.4);
  color: #69f0ae;
}
