/* The dark look of the generated content, blog and policy pages, flat as at AutoSubtitles: a near-black page,
   cards one step lighter with one thin line, one indigo button with 8 px corners and no shadow or glow.
   The server links this file only on a dark page, just before site-dark.css (subtitleai/seo/chrome.py), and
   every rule here names the dark theme and .seo-body, so it wins where the two files meet. */

html[data-theme="dark"] .seo-body {
    --accent: #615fff;
    --accent-hover: #5755e6;
    --bg-border: rgba(255, 255, 255, 0.08);
    --border-solid: rgba(255, 255, 255, 0.08);
    --surface-card: #171717;
    --shadow-card-hover: none;
    --text-muted: #a3a3a3;
    background: #0a0a0a;
    color: #d4d4d4;
}

/* Text: white headings, body copy one step below white, notes dim. The free tool pages (tools.css) set their own
   text colours and title sizes, as AutoSubtitles' tool pages do. */
html[data-theme="dark"] .seo-body :is(h1, h2, h3) { color: #fff; }
html[data-theme="dark"] .seo-body .seo-article:not(.seo-tool-article) :is(p, li, td):not(.seo-kicker, .seo-lede, .blog-card-meta, .free-output-summary) {
    color: #d4d4d4;
}
html[data-theme="dark"] .seo-body .seo-article :is(.seo-lede, .blog-card-meta, .free-output-summary) { color: #a3a3a3; }

/* Buttons: one flat indigo */
html[data-theme="dark"] .seo-body .subtitleai-btn { border-radius: 8px; box-shadow: none; }
html[data-theme="dark"] .seo-body .subtitleai-btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
html[data-theme="dark"] .seo-body .subtitleai-btn-primary:hover { background: var(--accent-hover); }

/* Cards */
html[data-theme="dark"] .seo-body .blog-task { background: var(--surface-card); border-color: var(--border-solid); }

/* Caption editor top bar */
html[data-theme="dark"] .seo-body .seo-topbar { background: rgba(10, 10, 10, 0.8); border-bottom-color: transparent; }
html[data-theme="dark"] .seo-body .seo-topbar-brand { color: #fff; }
html[data-theme="dark"] .seo-body .seo-topbar-help { color: #a3a3a3; }
html[data-theme="dark"] .seo-body .seo-topbar-help:hover { color: #fff; }

/* Footer, as on AutoSubtitles' inner pages: the page colour with one thin line, plain group titles, grey links
   (#808080, not their #737373, for AA contrast), three columns from 1024 px and a centred copyright line. */
html[data-theme="dark"] .seo-body .uf-footer { background: #0a0a0a; border-top-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .seo-body .uf-footer-brand { display: none; }
html[data-theme="dark"] .seo-body .uf-footer h2 { color: #e5e5e5; font-size: 14px; letter-spacing: 0; text-transform: none; }
html[data-theme="dark"] .seo-body .uf-footer li a { color: #808080; }
html[data-theme="dark"] .seo-body .uf-footer li a:hover { color: #fff; }
html[data-theme="dark"] .seo-body .uf-footer-bottom { justify-content: center; border-top-color: rgba(255, 255, 255, 0.08); color: #808080; }
html[data-theme="dark"] .seo-body .uf-footer-bottom span + span { display: none; }
@media (pointer: fine) {
    html[data-theme="dark"] .seo-body .uf-footer li a { min-height: 28px; }
}
@media (min-width: 1024px) {
    html[data-theme="dark"] .seo-body .uf-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Headings: AutoSubtitles' inner H1, 44 px on a phone and 72 px from 640 px */
html[data-theme="dark"] .seo-body .seo-article:not(.seo-tool-article) h1 { font-size: 44px; line-height: 1.02; letter-spacing: -0.035em; }
@media (min-width: 640px) {
    html[data-theme="dark"] .seo-body .seo-article:not(.seo-tool-article) h1 { font-size: 72px; }
}
