/* =============================================================
 * NORVENTA MEDIA — styles.css
 * Dark mode · responsivo · transições suaves
 * ============================================================= */

/* ----------------------- Tokens ----------------------- */
:root {
  --bg:        #0b0d12;
  --bg-2:      #11141c;
  --surface:   #161a24;
  --surface-2: #1c2130;
  --border:    #262c3a;
  --text:      #eef1f7;
  --muted:     #9aa4b7;
  --muted-2:   #6b7488;

  /* Cor de destaque do canal ativo (sobrescrita via JS por aba) */
  --accent:    #ff3b6b;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);

  --shadow:    0 10px 30px -12px rgba(0,0,0,.6);
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----------------------- Reset ----------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ----------------------- Botões ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .85em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--accent); color: #0b0d12;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted-2); }

/* ----------------------- Header ----------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; font-weight: 900; color: #0b0d12;
  background: linear-gradient(135deg, #ff3b6b, #c084fc 55%, #3b82f6);
}
.brand-text { font-weight: 800; letter-spacing: .06em; font-size: .95rem; }
.brand-text strong { font-weight: 800; color: var(--muted); }
.brand-text.small { font-size: .82rem; opacity: .8; }

.main-nav { display: flex; gap: 1.6em; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.main-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }

/* ----------------------- Hero ----------------------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 620px; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(255,59,107,.20), transparent 70%) 15% 20% / 55% 55% no-repeat,
    radial-gradient(closest-side, rgba(192,132,252,.18), transparent 70%) 80% 10% / 55% 60% no-repeat,
    radial-gradient(closest-side, rgba(59,130,246,.16), transparent 70%) 55% 60% / 60% 60% no-repeat;
  filter: blur(6px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: .4em 1em; margin-bottom: 1.4em;
}
.hero-title { font-size: clamp(2rem, 5vw + 1rem, 4rem); margin-bottom: .5em; }
.grad {
  background: linear-gradient(90deg, #ff3b6b, #c084fc 50%, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin: 0 auto 2em; color: var(--muted); font-size: 1.1rem; }
.hero-cta { display: flex; gap: .8em; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 820px; margin: 3.5em auto 0;
}
.hero-stats li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .82rem; }

/* ----------------------- Carrossel de canais ----------------------- */
.channels-strip { padding: 10px 0 40px; }
.strip-track {
  display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.strip-track::-webkit-scrollbar { height: 8px; }
.strip-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.channel-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 260px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.channel-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: var(--card-accent, var(--accent));
}
.channel-card:hover { transform: translateY(-4px); border-color: var(--card-accent, var(--accent)); box-shadow: var(--shadow); }
.channel-card .cc-avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; margin-bottom: 12px;
  border: 2px solid var(--card-accent, var(--accent)); background: var(--surface-2);
}
.channel-card h3 { font-size: 1.1rem; margin-bottom: .2em; }
.channel-card p { color: var(--muted); font-size: .85rem; margin: 0; }
.channel-card .cc-subs { margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--card-accent, var(--accent)); }

/* ----------------------- Seções genéricas ----------------------- */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }
.portal { padding: 40px 0 70px; }

/* ----------------------- Tabs ----------------------- */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 26px;
}
.tab-btn {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: .7em 1.3em; font-weight: 700; font-size: .92rem;
  cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease);
  display: inline-flex; align-items: center; gap: .5em;
}
.tab-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tab-accent, var(--muted)); }
.tab-btn:hover { color: var(--text); transform: translateY(-1px); }
.tab-btn[aria-selected="true"] {
  color: var(--text); background: var(--surface-2);
  border-color: var(--tab-accent, var(--accent));
  box-shadow: inset 0 0 0 1px var(--tab-accent, var(--accent));
}

/* ----------------------- Painéis (transição suave) ----------------------- */
.tab-panels { position: relative; }
.panel {
  display: none;
  animation: panelIn .45s var(--ease) both;
}
.panel.is-active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  html { scroll-behavior: auto; }
}

.panel-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.panel-avatar {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 3px solid var(--accent); background: var(--surface-2);
}
.panel-name { font-size: 1.5rem; margin: 0; }
.panel-handle { color: var(--accent); font-weight: 700; font-size: .92rem; }
.panel-handle:hover { text-decoration: underline; }
.panel-tagline { color: var(--muted); margin: .3em 0 0; }

/* Métricas */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px;
}
.metrics li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; position: relative; overflow: hidden;
}
.metrics li::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--accent); opacity: .8;
}
.metrics strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.metrics span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* Destaques (vídeos) */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color .25s;
}
.feature:hover { border-color: var(--accent); }
.feature h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 14px;
}
.video-embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-2); margin-bottom: 14px;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--border) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.video-title { font-weight: 700; font-size: .98rem; margin: 0 0 10px; min-height: 1.4em; }
.video-meta { display: flex; gap: 16px; color: var(--muted); font-size: .88rem; }
.video-meta span { display: inline-flex; align-items: center; gap: .4em; }
.video-meta span::before { font-size: .95em; }
.video-meta [data-vm="views"]::before { content: "▶"; color: var(--accent); }
.video-meta [data-vm="likes"]::before { content: "♥"; color: var(--accent); }

/* ----------------------- Sobre ----------------------- */
.about { padding: 60px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about p { color: var(--muted); }
.pillars { display: grid; gap: 14px; }
.pillars li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.pillars h3 { font-size: 1.05rem; margin-bottom: .2em; }
.pillars p { margin: 0; font-size: .9rem; }

/* ----------------------- Contato ----------------------- */
.contact { padding: 70px 0; text-align: center; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact p { color: var(--muted); margin-bottom: 1.4em; }

/* ----------------------- Footer ----------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted-2); font-size: .85rem; }
.footer-inner a { color: var(--muted); font-size: .85rem; }
.footer-inner a:hover { color: var(--text); }

/* ----------------------- Responsivo ----------------------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s var(--ease); padding: 8px 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .metrics { grid-template-columns: 1fr; }
  .metrics strong { font-size: 1.6rem; }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }
}
