/*
Theme Name: GreenTV App Brand
Description: GreenTV App - Business in a Box. Conversion-focused, installer-toned, and built for a fresh GreenTV launch.
Version: 2.0
*/

:root {
  --bg: #07120e;
  --bg-soft: #0d1d17;
  --panel: rgba(16, 31, 24, 0.9);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f0e6;
  --muted: rgba(245, 240, 230, 0.74);
  --green: #00b140;
  --green-deep: #0d6f38;
  --gold: #c5a46e;
  --cream: #fff8ea;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  /* Site content band — matches homepage .gtv-container / latest news */
  --gtv-content-width: min(1480px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(0, 177, 64, 0.16), transparent 62%),
    radial-gradient(800px 420px at 92% 0%, rgba(197, 164, 110, 0.14), transparent 58%),
    linear-gradient(160deg, #050b08, var(--bg) 42%, var(--bg-soft));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
main { display: block; padding-bottom: 28px; }

a { color: var(--cream); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 18, 14, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.nav {
  max-width: var(--gtv-content-width);
  width: var(--gtv-content-width);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  box-sizing: border-box;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}
.brand-summary {
  color: rgba(245,240,230,0.72);
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 26ch;
}
.nav-main {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-sub {
  width: 100%;
  padding-top: 8px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.subhead-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #e8fff0;
  font: 800 0.72rem/1 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(0, 177, 64, 0.92), rgba(13, 111, 56, 0.95));
  border: 1px solid rgba(0, 255, 107, 0.35);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.subhead-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #00ff6b;
  box-shadow: 0 0 10px rgba(0, 255, 107, 0.65);
}
.latest-marquee {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.latest-track {
  display: flex;
  gap: 10px;
  width: max-content;
  align-items: stretch;
  animation: latest-marquee 34s linear infinite;
  will-change: transform;
}
.latest-marquee:hover .latest-track {
  animation-play-state: paused;
}
@keyframes latest-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.latest-marquee-empty {
  margin: 0;
  padding: 10px 12px;
  color: rgba(5, 20, 13, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
}
.latest-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 156px;
  text-decoration: none;
  color: #e8fff0;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.latest-card-media {
  position: relative;
  display: block;
  width: 156px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 20, 13, 0.55);
  border: 1px solid rgba(0, 177, 64, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.latest-card-media img,
.latest-card-media video,
.latest-card-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  pointer-events: none;
}
.latest-card-video,
.latest-card-embed {
  background: #04110b;
}
.latest-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7, 18, 14, 0.82);
  border: 1px solid rgba(197, 164, 110, 0.45);
  color: #c5a46e;
  font: 700 0.58rem/1 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.latest-card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00b140, #00ff6b);
  color: #04110b;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}
.latest-card-title {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  color: #e8fff0;
  max-width: 156px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-card:hover {
  transform: translateY(-1px);
}
.latest-card:hover .latest-card-media {
  filter: brightness(1.08);
  border-color: rgba(0, 255, 107, 0.55);
  box-shadow: 0 12px 26px rgba(0, 177, 64, 0.18);
}
.latest-card--video .latest-card-media {
  border-color: rgba(0, 255, 107, 0.42);
}
.latest-card--video .latest-card-badge {
  background: rgba(0, 177, 64, 0.88);
  border-color: rgba(0, 255, 107, 0.55);
  color: #04110b;
}
.latest-card--video .latest-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .latest-track { animation: none; }
  .latest-card-video,
  .latest-card-embed { display: none; }
}
.logo {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.18rem;
  color: var(--cream);
  white-space: nowrap;
}
.logo span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-links-inline {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.nav-links li { margin: 0; }
.nav-links a,
.nav-links .menu-item > a {
  color: rgba(255, 248, 234, 0.9);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  background: rgba(255, 255, 255, 0.08);
}
.nav-cta,
.btn,
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-cta,
.btn-light,
button.primary { background: linear-gradient(90deg, var(--green), var(--gold)); color: #04110b; }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}
.btn-outline:hover,
.btn-light:hover,
.nav-cta:hover,
button.primary:hover { transform: translateY(-1px); }

.hero {
  max-width: var(--gtv-content-width);
  width: var(--gtv-content-width);
  margin: 0 auto;
  padding: 82px 0 36px;
  box-sizing: border-box;
}
.hero-inner {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 48px);
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(0, 177, 64, 0.14), transparent 60%),
    radial-gradient(700px 300px at 90% 0%, rgba(197, 164, 110, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 177, 64, 0.32);
  color: rgba(255, 248, 234, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(0,177,64,0.14); display:inline-block; }
.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--cream);
  max-width: 13ch;
}
.hero p,
.lead {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.pills,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 0.92rem;
}
.section {
  max-width: var(--gtv-content-width);
  width: var(--gtv-content-width);
  margin: 0 auto;
  padding: 36px 0;
  box-sizing: border-box;
}
.section h2,
.section h3,
.content h1,
.content h2,
.content h3 {
  line-height: 1.08;
  color: var(--cream);
}
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; }
.section .sub { color: var(--muted); max-width: 900px; }
.grid,
.offer-grid,
.four-up {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}
.card,
.offer,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3,
.offer h3,
.panel h3 { margin-top: 0; }
.card p,
.offer p,
.panel p,
.content p,
.content li { color: rgba(245,240,230,0.84); }
.price {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--cream);
  margin: 8px 0 4px;
}
.split {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
}
.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(197,164,110,0.22);
}
.callout strong { color: #fff; }
/* All pages share the same full content band as homepage / latest news */
.content,
.content.yb-blog-home,
.content.yb-blog-home--full,
.content.yb-blog-single,
.content.page-template-shell,
.content.gtv-site,
.content.gtv-create-channel-wrap {
  width: var(--gtv-content-width);
  max-width: var(--gtv-content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 20px 0 40px;
  box-sizing: border-box;
}

.yb-blog-home__head {
  margin: 0 0 22px;
  max-width: 720px;
}

.yb-blog-home__title {
  margin: 0 0 8px !important;
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.yb-blog-home__lede {
  margin: 0 !important;
  color: rgba(232, 255, 240, 0.76);
  font-size: 1rem;
  line-height: 1.5;
}
.page-template-shell,
.homepage-editor-shell {
  width: 100%;
  max-width: 100%;
}
.page-template-body,
.homepage-editor-body {
  margin: 0;
}
.page-template-inner,
.homepage-editor-inner {
  width: 100%;
}
.page-template-inner > *:first-child,
.homepage-editor-inner > *:first-child {
  margin-top: 0;
}
.content .hero-panel,
.content .page-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.content ul { padding-left: 20px; }
.content li { margin: 0.35rem 0; }
.content .btn { margin-right: 10px; margin-top: 6px; }
.yb-blog-grid,
.yb-blog-grid--full {
  display: grid;
  gap: 18px;
  width: 100%;
  /* Fill the full content band — 3–4 cards across on wide screens */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .yb-blog-grid,
  .yb-blog-grid--full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .yb-blog-grid,
  .yb-blog-grid--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .yb-blog-grid,
  .yb-blog-grid--full {
    grid-template-columns: 1fr;
  }
}

.yb-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-width: 0;
  height: 100%;
  background: rgba(8, 18, 14, 0.92);
  border: 1px solid rgba(0, 177, 64, 0.28);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.yb-blog-card-image {
  display: block;
  line-height: 0;
  overflow: hidden;
}
.yb-blog-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.yb-blog-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.yb-blog-meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  opacity: 0.75;
  color: rgba(232, 255, 240, 0.7);
}
.yb-blog-card__title {
  margin: 0 0 8px !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}
.yb-blog-card__title a {
  color: #fff !important;
  text-decoration: none !important;
}
.yb-blog-card__title a:hover {
  color: #00ff6b !important;
}
.yb-blog-excerpt {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(232, 255, 240, 0.72);
  flex: 1 1 auto;
}
.yb-blog-card__more,
.yb-blog-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.yb-blog-pagination {
  margin-top: 28px;
  width: 100%;
}
.yb-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.yb-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.yb-single-featured img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.module-bar {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 10px 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.module-pill {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 155px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,177,64,0.95), rgba(13,111,56,0.92));
  border: 1px solid rgba(255,255,255,0.10);
  color: #f4ffee;
  box-shadow: 0 10px 24px rgba(0, 177, 64, 0.16);
  white-space: nowrap;
  font-weight: 900;
  scroll-snap-align: start;
}
.module-pill:hover { filter: brightness(1.05); }
.module-name { font-size: 0.92rem; line-height: 1.1; }
.module-price { color: rgba(244,255,238,0.76); font-size: 0.75rem; font-weight: 800; line-height: 1; }
.site-footer {
  background: rgba(4, 10, 8, 0.92);
  color: rgba(255,255,255,0.72);
  border-top: 1px solid var(--line);
  margin-top: 96px;
}
.site-footer .inner {
  max-width: var(--gtv-content-width);
  width: var(--gtv-content-width);
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.site-footer .brand { font-weight: 900; color: var(--cream); }
.site-footer .brand span { color: var(--green); }
.site-footer .meta { color: rgba(255,255,255,0.6); }

@media (max-width: 700px) {
  .hero { padding-top: 26px; }
  .nav-links { width: 100%; justify-content: flex-start; }
}
