/* Startation — packs de tema (cores + tipografia + layouts de home) */

/* —— Header legado usado pelo layout.blade —— */
.st-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--st-header) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--st-line);
}
.st-nav {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  min-height: 64px; padding: 12px 0;
}
.st-logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; color: var(--st-ink);
  white-space: nowrap;
}
.st-logo span { color: var(--st-accent); }
.st-nav-links {
  display: flex; flex-wrap: wrap; gap: 4px 8px; flex: 1; min-width: 0;
}
.st-nav-links a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; color: var(--st-muted);
}
.st-nav-links a:hover,
.st-nav-links a.is-active {
  color: var(--st-accent); background: var(--st-accent-soft);
}
.st-search {
  display: flex; gap: 8px; align-items: stretch; flex-shrink: 0;
}
.st-search input {
  min-height: 44px; min-width: 140px; max-width: 220px;
  padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--st-line); background: var(--st-elevated); color: var(--st-ink);
}
.st-search button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--st-accent); color: #fff; font-weight: 700; cursor: pointer;
}
.st-search button:hover { filter: brightness(1.08); }
.st-section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 40px 0 16px; padding-top: 8px; border-top: 1px solid var(--st-line);
}
.st-section-title h2 {
  margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.03em; font-weight: 800;
}
.st-card {
  display: grid; gap: 12px; border-radius: var(--st-radius);
  overflow: hidden; background: var(--st-surface);
}
.st-card-media {
  position: relative;
  display: block; aspect-ratio: 16/10; background: var(--st-elevated); overflow: hidden;
  border-radius: var(--st-radius);
}
.st-card-media--empty,
.st-card-media:not(:has(img)) {
  display: flex; align-items: flex-end; padding: 20px 22px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--st-accent) 55%, transparent), transparent 48%),
    linear-gradient(135deg, #0b0718 0%, color-mix(in srgb, var(--st-accent) 78%, #1a1035) 55%, color-mix(in srgb, var(--st-accent) 40%, #8b7cff) 100%);
  color: #fff; font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-family: var(--st-font);
}
html[data-theme="light"] .st-card-media--empty,
html[data-theme="light"] .st-card-media:not(:has(img)) {
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--st-accent) 28%, white), transparent 50%),
    linear-gradient(135deg, #eef0ff 0%, color-mix(in srgb, var(--st-accent) 35%, white) 55%, #d8deff 100%);
  color: var(--st-ink);
}
.st-card-media__fallback { display: block; max-width: 90%; line-height: 1.15; }
.st-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.st-card:hover .st-card-media img { transform: scale(1.03); }
.st-card-body { display: grid; gap: 8px; font-family: var(--st-font); }
.st-card-body h2, .st-card-body h3 {
  margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.03em; font-weight: 800;
  font-family: var(--st-font);
}
.st-card--feature .st-card-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1;
}
.st-excerpt, .st-meta, .st-pill {
  font-family: var(--st-font);
}
.st-footer {
  margin-top: 64px; padding: 40px 0 48px;
  border-top: 1px solid var(--st-line); color: var(--st-muted);
}
.st-footer a { font-weight: 600; }
.st-footer a:hover { color: var(--st-accent); }

/* —— Theme packs: só accent/radius/extras ——
   Light/dark fica em data-theme (site.css). Packs NÃO travam ink/bg,
   senão o toggle claro/escuro não funciona. */
html[data-st-theme="midnight"] {
  --st-accent: #462CFB;
  --st-accent-soft: rgba(70, 44, 251, 0.22);
  --st-radius: 14px;
}
html[data-theme="light"][data-st-theme="midnight"] {
  --st-accent-soft: rgba(70, 44, 251, 0.12);
}

html[data-st-theme="signal"] {
  --st-accent: #E11D48;
  --st-accent-soft: rgba(225, 29, 72, 0.2);
  --st-radius: 8px;
}
html[data-theme="light"][data-st-theme="signal"] {
  --st-accent-soft: rgba(225, 29, 72, 0.12);
}
html[data-st-theme="signal"] .st-logo { text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; }
html[data-st-theme="signal"] .st-pill { letter-spacing: 0.12em; }

html[data-st-theme="aurora"] {
  --st-accent: #22D3EE;
  --st-accent-soft: rgba(34, 211, 238, 0.16);
  --st-radius: 18px;
}
html[data-theme="light"][data-st-theme="aurora"] {
  --st-accent-soft: rgba(8, 145, 178, 0.14);
}
html[data-theme="dark"][data-st-theme="aurora"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(99, 102, 241, 0.1), transparent);
  background-attachment: fixed;
}

html[data-st-theme="paper"] {
  --st-accent: #0F766E;
  --st-accent-soft: rgba(15, 118, 110, 0.12);
  --st-radius: 4px;
}
html[data-theme="dark"][data-st-theme="paper"] {
  --st-accent-soft: rgba(45, 212, 191, 0.18);
}

html[data-st-theme="nova"] {
  --st-accent: #4F46E5;
  --st-accent-soft: rgba(79, 70, 229, 0.12);
  --st-radius: 20px;
}
html[data-theme="dark"][data-st-theme="nova"] {
  --st-accent-soft: rgba(129, 140, 248, 0.2);
}
html[data-st-theme="nova"] .st-card {
  border: 1px solid var(--st-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding-bottom: 16px;
}
html[data-st-theme="nova"] .st-card-media { border-radius: 16px; margin: 8px 8px 0; }

html[data-st-theme="ember"] {
  --st-accent: #F59E0B;
  --st-accent-soft: rgba(245, 158, 11, 0.16);
  --st-radius: 12px;
}
html[data-theme="light"][data-st-theme="ember"] {
  --st-accent-soft: rgba(217, 119, 6, 0.14);
}

html[data-st-theme="slate"] {
  --st-accent: #334155;
  --st-accent-soft: rgba(51, 65, 85, 0.12);
  --st-radius: 6px;
}
html[data-theme="dark"][data-st-theme="slate"] {
  --st-accent: #94A3B8;
  --st-accent-soft: rgba(148, 163, 184, 0.18);
}

html[data-st-theme="bloom"] {
  --st-accent: #DB2777;
  --st-accent-soft: rgba(219, 39, 119, 0.14);
  --st-radius: 22px;
}
html[data-theme="dark"][data-st-theme="bloom"] {
  --st-accent-soft: rgba(244, 114, 182, 0.2);
}
html[data-st-theme="bloom"] .st-card {
  border: 1px solid var(--st-line);
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.06);
}

/* Garante light/dark depois dos packs (toggle sempre funciona) */
html[data-theme="dark"] {
  --st-ink: #ffffff;
  --st-muted: #b0b0b8;
  --st-faint: #7a7a86;
  --st-line: rgba(255, 255, 255, 0.1);
  --st-line-strong: rgba(255, 255, 255, 0.18);
  --st-bg: #000000;
  --st-surface: #0c0c0c;
  --st-elevated: #151515;
  --st-header: #000000;
  color-scheme: dark;
}
html[data-theme="light"] {
  --st-ink: #0a0a0a;
  --st-muted: #5c5c66;
  --st-faint: #8a8a96;
  --st-line: #e8e8ec;
  --st-line-strong: #d2d2d8;
  --st-bg: #ffffff;
  --st-surface: #ffffff;
  --st-elevated: #f4f5f7;
  --st-header: #ffffff;
  color-scheme: light;
}

/* —— Layouts de home —— */
.st-home-layout { padding: 24px 0 64px; }

/* hero-split (midnight default) */
.st-layout-hero-split .st-hero {
  display: grid; gap: 20px; margin-bottom: 8px;
}
@media (min-width: 960px) {
  .st-layout-hero-split .st-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    gap: 24px; align-items: start;
  }
}
.st-layout-hero-split .st-card--feature .st-card-media { aspect-ratio: 16/10; }

/* hero-fullbleed (signal) */
.st-layout-hero-fullbleed .st-hero-full {
  position: relative; margin: 0 0 32px; border-radius: var(--st-radius); overflow: hidden;
  min-height: clamp(320px, 52vw, 520px);
  background: var(--st-elevated);
}
.st-layout-hero-fullbleed .st-hero-full__media {
  position: absolute; inset: 0;
}
.st-layout-hero-fullbleed .st-hero-full__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.st-layout-hero-fullbleed .st-hero-full__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.78) 100%);
}
.st-layout-hero-fullbleed .st-hero-full__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(320px, 52vw, 520px);
  padding: clamp(20px, 4vw, 40px);
  color: #fff;
  max-width: 820px;
}
.st-layout-hero-fullbleed .st-hero-full__body .st-pill { color: #fff; background: var(--st-accent); padding: 4px 10px; border-radius: 6px; display: inline-flex; width: fit-content; }
.st-layout-hero-fullbleed .st-hero-full__body h2 {
  margin: 12px 0 0; font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 800;
}
.st-layout-hero-fullbleed .st-hero-full__body h2 a { color: #fff; }
.st-layout-hero-fullbleed .st-hero-full__body h2 a:hover { color: #fff; text-decoration: underline; }
.st-layout-hero-fullbleed .st-hero-full__body .st-excerpt { color: rgba(255,255,255,.88); max-width: 36rem; }
.st-layout-hero-fullbleed .st-hero-full__body .st-meta { color: rgba(255,255,255,.7); }
.st-layout-hero-fullbleed .st-side-rail {
  display: grid; gap: 0; border-top: 3px solid var(--st-accent); margin-bottom: 32px;
}
.st-layout-hero-fullbleed .st-side-rail article {
  display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--st-line);
}

/* grid-dense (aurora) */
.st-layout-grid-dense .st-dense {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .st-layout-grid-dense .st-dense { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .st-layout-grid-dense .st-dense > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .st-layout-grid-dense .st-dense > :nth-child(2),
  .st-layout-grid-dense .st-dense > :nth-child(3) { grid-column: span 2; }
  .st-layout-grid-dense .st-dense > :nth-child(n+4) { grid-column: span 2; }
}
.st-layout-grid-dense .st-dense > :nth-child(1) .st-card-body h3,
.st-layout-grid-dense .st-dense > :nth-child(1) .st-card-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

/* broadsheet (paper) */
.st-layout-broadsheet .st-broad-head {
  text-align: center; padding: 28px 0 20px;
  border-bottom: 3px double var(--st-ink); margin-bottom: 24px;
}
.st-layout-broadsheet .st-broad-head__kicker {
  margin: 0 0 8px; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--st-accent);
}
.st-layout-broadsheet .st-broad-head h1 {
  margin: 0; font-family: var(--st-font);
  font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 800;
}
.st-layout-broadsheet .st-broad-grid {
  display: grid; gap: 24px; border-top: 1px solid var(--st-line); padding-top: 24px;
}
@media (min-width: 900px) {
  .st-layout-broadsheet .st-broad-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  }
}
.st-layout-broadsheet .st-broad-lead h2 {
  font-family: var(--st-font); font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15; margin: 8px 0; font-weight: 800;
}
.st-layout-broadsheet .st-broad-col {
  border-left: 1px solid var(--st-line); padding-left: 20px;
}
@media (max-width: 899px) {
  .st-layout-broadsheet .st-broad-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--st-line); padding-top: 16px; }
}
.st-layout-broadsheet .st-broad-col article {
  padding: 12px 0; border-bottom: 1px solid var(--st-line);
}
.st-layout-broadsheet .st-broad-col h3 {
  font-family: var(--st-font); font-size: 1.05rem; margin: 6px 0; line-height: 1.3; font-weight: 700;
}

/* magazine (nova) */
.st-layout-magazine .st-mag-hero {
  display: grid; gap: 24px; margin-bottom: 40px;
}
@media (min-width: 900px) {
  .st-layout-magazine .st-mag-hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.st-layout-magazine .st-mag-hero .st-card-media { aspect-ratio: 4/3; border-radius: 24px; }
.st-layout-magazine .st-mag-hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.045em;
}
.st-layout-magazine .st-mag-grid {
  display: grid; gap: 24px;
}
@media (min-width: 700px) {
  .st-layout-magazine .st-mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .st-layout-magazine .st-mag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* stack (ember) */
.st-layout-stack .st-stack-item {
  display: grid; gap: 20px; padding: 32px 0;
  border-bottom: 1px solid var(--st-line);
}
@media (min-width: 800px) {
  .st-layout-stack .st-stack-item {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px; align-items: center;
  }
  .st-layout-stack .st-stack-item:nth-child(even) .st-stack-item__media { order: 2; }
}
.st-layout-stack .st-stack-item__media {
  aspect-ratio: 16/11; border-radius: var(--st-radius); overflow: hidden; background: var(--st-elevated);
}
.st-layout-stack .st-stack-item__media img { width: 100%; height: 100%; object-fit: cover; }
.st-layout-stack .st-stack-item h2 {
  margin: 8px 0 0; font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 800;
}
.st-layout-stack .st-stack-item .st-excerpt {
  margin-top: 12px; max-width: 38rem;
}

@media (max-width: 719px) {
  .st-nav-links { display: none; }
  .st-search input { max-width: 120px; min-width: 100px; }
}
