/* Website design by Geek With Social Skills - https://www.geekwithsocialskills.com */

:root {
    --bg: #05070a;
    --panel: #101820;
    --panel2: #16212b;
    --blue: #00aaff;
    --green: #39ff88;
    --white: #f5f7fa;
    --grey: #9aa8b5;
    --border: #294150;
}

/* Global reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at -10% 0%, rgba(0,170,255,.14), transparent 32%),
        radial-gradient(circle at 115% -5%, rgba(57,255,136,.05), transparent 24%),
        var(--bg);
    color: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    transition: color 0.2s ease;
}

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* Layout */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px;
}

/* Hero */
.hero {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(16,24,32,.96), rgba(22,33,43,.92));
    border-radius: 18px;
    padding: 34px 26px;
    margin-bottom: 28px;
    box-shadow: 0 0 28px rgba(0,170,255,.12);
}

.kicker {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
    font-weight: bold;
}

h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    max-width: 28ch;
    text-wrap: balance;
}

.hero p {
    max-width: 100%;
    color: var(--grey);
    font-size: 1.08rem;
}

.quote {
    margin-top: 14px;
    font-style: italic;
    color: var(--grey);
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* Navigation buttons */
.button-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--border);
    color: var(--white);
    background: transparent;
}

.btn.active {
    background-color: #0077cc;
    color: #fff;
}

.btn:hover {
    color: var(--green);
    border-color: var(--blue);
    box-shadow: 0 0 18px rgba(0,170,255,.18);
}

/* Archive introduction */
.about-channel {
    margin-top: 36px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}

.about-channel h2 {
    margin: 0 0 12px;
    color: var(--white);
}

.about-channel p {
    color: var(--grey);
    margin: 0 0 12px;
}

.about-channel p:last-child {
    margin-bottom: 0;
}

.about-channel p a {
    color: #00c2ff;
    text-decoration: none;
    font-weight: 500;
}

.about-channel p a:hover {
    color: #00ff9c;
    text-decoration: underline;
}

/* Year navigation */
.video-year-nav {
    margin: 10px 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.video-year-nav-label {
    font-weight: 700;
    margin-right: 0.25rem;
}

.video-year-nav a,
.back-to-top a {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
}

.video-year-nav a {
    padding: 2px 6px;
    border-radius: 6px;
}

.video-year-nav a:hover,
.back-to-top a:hover {
    color: var(--green);
}

/* Archive year sections */
.video-year-heading {
    margin-top: 16px;
    margin-bottom: 0.75rem;
    scroll-margin-top: 1rem;
    color: var(--green);
}

.back-to-top {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.video-archive-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0.5rem;
}

.video-archive-link {
    display: block;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.3;
}

.video-archive-link:hover {
    color: var(--green);
    border-color: var(--blue);
    box-shadow: 0 0 18px rgba(0,170,255,.18);
}

/* Footer */
footer {
    margin-top: 8px;
    padding-top: 8px;
    color: var(--grey);
    font-size: .95rem;
    text-align: center;
}

footer p:first-of-type {
    font-size: 0.95rem;
    font-weight: 500;
}

.content-note {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.4;
}

footer p:last-of-type {
    font-size: 0.9rem;
}

footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: var(--green);
    text-decoration: underline;
}

footer p {
    margin: 2px 0;
    line-height: 1.4;
}

footer .footer-pi {
    opacity: 0.4;
    margin-left: 0.35em;
    text-decoration: none;
    cursor: default;
    transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

footer .footer-pi:hover {
    opacity: 1;
    color: var(--green);
    text-shadow: 0 0 6px rgba(57,255,136,0.6);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 620px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(0,170,255,.10), transparent 28%),
            var(--bg);
    }

    .site-wrap {
        padding: 22px 14px;
    }

    .hero {
        padding: 22px 18px;
        margin-bottom: 22px;
        box-shadow: none;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .button-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-channel {
        padding: 18px;
    }

    .video-archive-links {
        grid-template-columns: 1fr;
    }
}

/* Reduce animation for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    a,
    .btn,
    footer .footer-pi {
        transition: none;
    }
}
