/* ==========================================================================
   TodoTorrents — onepage theme
   Dark, cinematic, torrent-leaning styling for a pure-content page.
   ========================================================================== */

:root {
    --bg: #0a0c10;
    --bg-elevated: #12151b;
    --bg-card: #161a21;
    --border: #232833;
    --text: #e7e9ee;
    --text-muted: #9aa3b2;
    --accent: #e50914;
    --accent-hover: #ff2130;
    --gold: #f2c94c;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --maxw: 880px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Reading-progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    z-index: 1000;
    transition: width 0.1s linear;
}

/* Skip the stray intro <p> that precedes <header>: keep it, but keep it quiet */
body > p:first-of-type {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 24px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Top navigation                                                          */
/* ---------------------------------------------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-nav .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav .brand .dot {
    color: var(--accent);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}

.site-nav ul::-webkit-scrollbar {
    display: none;
}

.site-nav a.nav-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link:focus-visible {
    color: var(--text);
    background: var(--bg-elevated);
}

/* ---------------------------------------------------------------------- */
/* Hero / banner                                                           */
/* ---------------------------------------------------------------------- */

header {
    position: relative;
    padding: 0;
    margin-bottom: 8px;
    background: radial-gradient(
            80% 100% at 50% 0%,
            rgba(229, 9, 20, 0.14) 0%,
            rgba(229, 9, 20, 0) 55%
        ),
        var(--bg);
}

header .hero-copy {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px 24px 28px;
    text-align: center;
}

header .hero-media {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px 8px;
}

header .hero-media img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

header .badges {
    justify-content: center;
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

header .badges span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.15);
    color: #ff5a63;
    border: 1px solid rgba(229, 9, 20, 0.35);
    text-transform: uppercase;
}

header .badges span.gold {
    background: rgba(242, 201, 76, 0.12);
    color: var(--gold);
    border-color: rgba(242, 201, 76, 0.3);
}

header h1 {
    font-size: clamp(1.6rem, 4.2vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

header .hero-copy p {
    color: #c7cad1;
    max-width: 620px;
    margin: 0 auto 22px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------- */
/* Main content                                                            */
/* ---------------------------------------------------------------------- */

main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 24px 40px;
}

main > p.lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 20px 0 0;
}

main > p.lead a {
    color: var(--gold);
}

main > section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 30px;
    margin: 22px 0;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

main > section.in-view {
    opacity: 1;
    transform: translateY(0);
}

main h2 {
    font-size: 1.45rem;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

main h2::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    display: inline-block;
}

main h3 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--text);
}

main p {
    color: #c7cad1;
    margin: 0 0 14px;
}

main p:last-child {
    margin-bottom: 0;
}

main ul,
main ol {
    color: #c7cad1;
    padding-left: 22px;
    margin: 0 0 6px;
}

main li {
    margin-bottom: 10px;
}

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

main a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(242, 201, 76, 0.4);
    text-underline-offset: 3px;
}

main a:hover {
    text-decoration-color: var(--gold);
}

blockquote {
    margin: 18px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(229, 9, 20, 0.06);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text);
}

blockquote p {
    margin: 0;
    color: inherit;
}

/* Table */
.table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 6px 0 16px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-size: 0.95rem;
}

thead th {
    text-align: left;
    background: var(--bg-elevated);
    color: var(--gold);
    padding: 12px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: #c7cad1;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* FAQ accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.2s ease;
    margin-left: 12px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    padding: 0 18px 18px;
    color: #c7cad1;
    margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

footer p {
    max-width: 640px;
    margin: 0 auto 8px;
}

footer .brand-line {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

footer .brand-line .dot {
    color: var(--accent);
}

/* Back-to-top button */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent-hover);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-nav {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .site-nav ul {
        flex: 1 1 100%;
        width: 100%;
    }

    header .hero-copy {
        padding: 40px 16px 22px;
    }

    header .hero-media {
        padding: 0 16px 8px;
    }

    main {
        padding: 8px 16px 32px;
    }

    main > section {
        padding: 20px 18px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    main > section {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
