/* UMVC3247 — color scheme
   Gold : titles, flavor, accents
   Red  : energy, interactive, game feel
   Blue : links
*/

:root,
[data-theme="dark"] {
    --bg:           #111111;
    --bg-surface:   #1c1c1c;
    --bg-raised:    #252525;
    --border:       #333333;

    --gold:         #e6a817;
    --gold-dim:     #a37510;
    --red:          #e53935;
    --red-bright:   #ff1744;
    --blue:         #1565c0;
    --blue-bright:  #42a5f5;
    --text:         #ffffff;
    --text-muted:   #a0a0a0;

    /* Pico overrides */
    --pico-background-color:        var(--bg);
    --pico-card-background-color:   var(--bg-surface);
    --pico-primary:                 var(--red-bright);
    --pico-primary-hover:           #ef9a9a;
    --pico-color:                   var(--text);
    --pico-muted-color:             var(--text-muted);
    --pico-secondary-color:         var(--text);
    --pico-border-color:            var(--border);
    --pico-h1-color:                var(--gold);
    --pico-h2-color:                var(--gold);
    --pico-h3-color:                #c0c0c0;
    --pico-ins-color:               var(--red-bright);
}

html {
    min-height: 100%;
    background-color: var(--bg);
    background-image: url('/assets/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body {
    min-height: 100vh;
    background: transparent;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Nav */
.nav-logo {
    height: 48px;
    width: auto;
    display: block;
}

header nav ul:first-child li {
    display: flex;
    align-items: center;
}

.hero-logo {
    height: clamp(80px, 15vw, 140px);
    width: auto;
    margin: 0 auto 0.25rem;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

header {
    border-bottom: 1px solid var(--border);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header nav a {
    font-size: 1.25rem;
}

/* Hero — homepage only, full-bleed stage image */
.hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}


.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0.25rem auto 1.5rem;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}

.feature-card h3 {
    color: var(--red-bright);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-card p {
    color: var(--text);
    font-size: 0.9rem;
    margin: 0;
}

/* Strip Pico's opaque table backgrounds */
table, thead, tbody, tr, th, td {
    background: transparent !important;
}

.about-section p {
    margin-bottom: 1.1rem;
    line-height: 1.7;
}

/* General content pane */
.content-pane {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 2.5rem;
}

/* Command reference */
.command-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.command-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.command-table th {
    color: var(--gold);
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
}

.command-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.command-table code {
    color: var(--red-bright);
    background: var(--bg-raised);
}

.status-supported,
.status-unsupported {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-supported {
    color: #9ff5bf;
    background: rgba(46, 125, 50, 0.28);
    border: 1px solid rgba(129, 199, 132, 0.4);
}

.status-unsupported {
    color: #ffb3b3;
    background: rgba(183, 28, 28, 0.24);
    border: 1px solid rgba(239, 83, 80, 0.35);
}

/* Accordions */
details {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

details[open] {
    border-color: var(--red);
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}

summary::before {
    content: '▸ ';
    color: var(--red-bright);
}

details[open] summary::before {
    content: '▾ ';
}
