/*
Theme Name: Album Server
Theme URI: https://albumserver.local/
Author: Grant Friedline
Description: Dark gradient Album Server WordPress theme adapted from the static.php marketing/legal page design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: album-server
*/

:root {
            --bg: #080b14;
            --bg-deep: #050711;
            --card: rgba(255, 255, 255, 0.08);
            --card-strong: rgba(255, 255, 255, 0.13);
            --text: #f7f8ff;
            --muted: #aeb7d8;
            --muted-2: #7883aa;
            --accent: #7c5cff;
            --accent-2: #17d4ff;
            --success: #38d996;
            --warning: #ffd166;
            --border: rgba(255, 255, 255, 0.15);
            --border-strong: rgba(255, 255, 255, 0.24);
            --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
            --radius-xl: 34px;
            --radius-lg: 24px;
            --radius-md: 18px;
        }

        * { box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(124, 92, 255, 0.35), transparent 34rem),
                radial-gradient(circle at bottom right, rgba(23, 212, 255, 0.22), transparent 30rem),
                linear-gradient(180deg, var(--bg), var(--bg-deep));
            min-height: 100vh;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        p {
            color: var(--muted);
            font-size: 1.06rem;
            line-height: 1.75;
            margin: 0 0 18px;
        }

        ul, ol {
            color: var(--muted);
            line-height: 1.75;
            padding-left: 22px;
        }

        li { margin-bottom: 10px; }

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

        .page {
            width: min(1160px, calc(100% - 32px));
            margin: 0 auto;
            padding: 34px 0 64px;
        }

        .site-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 18px;
            margin-bottom: 54px;
        }

        .logo {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            font-weight: 800;
            letter-spacing: -0.03em;
            font-size: 1.3rem;
            white-space: nowrap;
        }

        .logo-mark {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            display: grid;
            place-items: center;
            box-shadow: 0 16px 40px rgba(124, 92, 255, 0.35);
        }

        .nav {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 8px;
        }

        .nav a {
            color: var(--muted);
            border: 1px solid transparent;
            padding: 10px 12px;
            border-radius: 999px;
            font-size: 0.93rem;
            transition: 160ms ease;
        }

        .nav a:hover,
        .nav a.active {
            color: var(--text);
            background: rgba(255, 255, 255, 0.07);
            border-color: var(--border);
        }

        .hero {
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            background:
                linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(23, 212, 255, 0.08)),
                linear-gradient(180deg, var(--card-strong), var(--card));
            box-shadow: var(--shadow);
            padding: clamp(28px, 5vw, 58px);
        }

        .hero:before {
            content: '';
            position: absolute;
            inset: auto -10% -40% 45%;
            height: 360px;
            background: radial-gradient(circle, rgba(23, 212, 255, 0.22), transparent 68%);
            pointer-events: none;
        }

        .hero-inner {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 330px;
            gap: 36px;
            align-items: end;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #d9ddff;
            background: rgba(124, 92, 255, 0.16);
            border: 1px solid rgba(124, 92, 255, 0.38);
            padding: 8px 12px;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.86rem;
            margin-bottom: 22px;
        }

        h1 {
            margin: 0;
            font-size: clamp(2rem, 4vw, 3.5rem);
            line-height: 0.94;
            letter-spacing: -0.08em;
        }

        .hero-copy {
            color: var(--muted);
            font-size: 1.18rem;
            line-height: 1.7;
            max-width: 760px;
            margin: 24px 0 0;
        }

        .hero-panel {
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background: rgba(5, 7, 17, 0.36);
            padding: 20px;
            backdrop-filter: blur(18px);
        }

        .badge {
            display: inline-flex;
            align-items: center;
            color: var(--text);
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid var(--border);
            padding: 10px 14px;
            border-radius: 999px;
            font-size: 0.92rem;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .updated {
            color: var(--muted);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 18px;
        }

        .cta-row {
            display: grid;
            gap: 10px;
        }

        .button {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            border-radius: var(--radius-md);
            padding: 15px 18px;
            font-weight: 900;
            transition: 160ms ease;
        }

        .button.primary {
            color: white;
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            box-shadow: 0 16px 34px rgba(124, 92, 255, 0.32);
        }

        .button.secondary {
            color: var(--text);
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--border);
        }

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

        .layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 24px;
            margin-top: 28px;
            align-items: start;
        }

        .side-card,
        .content-card,
        .trust-card {
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            background: linear-gradient(180deg, var(--card-strong), var(--card));
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
        }

        .side-card {
            position: sticky;
            top: 18px;
            padding: 18px;
        }

        .side-card h2 {
            margin: 0 0 14px;
            font-size: 1rem;
            color: var(--muted);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .toc {
            display: grid;
            gap: 8px;
        }

        .toc a {
            color: var(--muted);
            padding: 11px 12px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.045);
            border: 1px solid transparent;
            font-size: 0.95rem;
        }

        .toc a:hover {
            color: var(--text);
            border-color: var(--border);
            background: rgba(255, 255, 255, 0.075);
        }

        .content-card {
            padding: clamp(24px, 4vw, 44px);
        }

        .content-section {
            padding: 0 0 34px;
            margin-bottom: 34px;
            border-bottom: 1px solid var(--border);
        }

        .content-section:last-child {
            border-bottom: 0;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .content-section h2 {
            margin: 0 0 16px;
            font-size: clamp(1.7rem, 3vw, 2.65rem);
            letter-spacing: -0.055em;
        }

        .note-box {
            margin-top: 18px;
            padding: 18px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(23, 212, 255, 0.28);
            background: rgba(23, 212, 255, 0.07);
        }

        .note-box p:last-child { margin-bottom: 0; }

        .trust-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 24px;
        }

        .trust-card {
            padding: 20px;
            box-shadow: none;
        }

        .trust-card .icon {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(124, 92, 255, 0.42), rgba(23, 212, 255, 0.22));
            margin-bottom: 14px;
        }

        .trust-card h3 {
            margin: 0 0 8px;
            font-size: 1.08rem;
        }

        .trust-card p {
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }

        .footer {
            margin-top: 48px;
            padding: 24px 0 0;
            color: var(--muted);
            font-size: 0.92rem;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 14px;
        }

        .footer-links a {
            color: var(--muted);
        }

        .footer-links a:hover {
            color: var(--text);
        }

        @media (max-width: 920px) {
            .site-header { align-items: flex-start; flex-direction: column; }
            .nav { justify-content: flex-start; }
            .hero-inner { grid-template-columns: 1fr; }
            .layout { grid-template-columns: 1fr; }
            .side-card { position: static; }
            .trust-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 560px) {
            .page { width: min(100% - 24px, 1160px); padding-top: 22px; }
            .nav a { padding: 8px 10px; }
            .hero { border-radius: 26px; }
            .content-card { border-radius: 22px; }
            h1 { letter-spacing: -0.065em; }
        }

/* WordPress compatibility tweaks */
.album-server-template .content-card h2 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    letter-spacing: -0.055em;
}
.album-server-template .content-card h2:not(:first-child) {
    padding-top: 34px;
    margin-top: 34px;
    border-top: 1px solid var(--border);
}
.album-server-template .content-card a:not(.button) {
    color: #d9ddff;
    text-decoration: underline;
    text-decoration-color: rgba(23, 212, 255, 0.5);
    text-underline-offset: 4px;
}
.admin-bar .album-server-template .side-card { top: 50px; }

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 30px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-image {
    flex: 0 0 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

@media (max-width: 900px) {
    .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        width: 100%;
        max-width: 500px;
        flex: none;
    }
}