/*
 * Palette and treatment (near-black base, blue→orange gradient accent,
 * translucent "glass" cards, layered radial-gradient aurora glow,
 * Space Grotesk / DM Sans type pairing) inspired by uupm.cc, adapted to
 * this page's sidebar layout.
 */

:root {
    color-scheme: dark;
    --bg:            #0b0b10;
    --sidebar-bg:    rgba(13, 14, 20, 0.9);
    --glass-bg:      rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border:  rgba(255, 255, 255, 0.1);
    --fg:            #f8fafc;
    --fg-muted:      #94a3b8;
    --blue-600:      #2563eb;
    --blue-500:      #3b82f6;
    --orange-500:    #f97316;
    --font-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font: 15px/1.5 var(--font-body);
    background: var(--bg);
    color: var(--fg);
    display: grid;
    grid-template-columns: 240px 1fr;
    position: relative;
}

/* Aurora background glow — fixed behind the main content, sidebar stays opaque above it */

.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 60% at 65% -10%, rgba(37, 99, 235, 0.25), transparent),
        radial-gradient(45% 45% at 90% 40%, rgba(249, 115, 22, 0.12), transparent),
        radial-gradient(45% 45% at 30% 85%, rgba(59, 130, 246, 0.16), transparent);
}

/* Sidebar */

aside {
    background: var(--sidebar-bg);
    color: var(--fg-muted);
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
    border-right: 1px solid var(--glass-border);
}

aside .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    white-space: nowrap;
    color: var(--fg);
    margin: 0 0 1.75rem;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 20px;
    height: 20px;
    flex: none;
}

aside nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

aside nav a {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background .12s, color .12s;
}

aside nav a:hover {
    background: var(--glass-bg);
    color: var(--fg);
}

aside footer {
    margin-top: 2rem;
    color: #4b5563;
    font-size: 0.75rem;
}

/* Main content */

main {
    padding: 2.5rem 2.5rem 4rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 0.6rem;
}

.hero-mark {
    width: clamp(2.25rem, 4vw, 3rem);
    height: clamp(2.25rem, 4vw, 3rem);
    flex: none;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--blue-600), var(--blue-500), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--fg-muted);
    max-width: 46rem;
    margin: 0 0 1.5rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2.5rem;
}

.stat-chip {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
}

.stat-chip strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--fg);
}

.stat-chip span {
    color: var(--fg-muted);
    font-size: 0.85rem;
}

main h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

ul.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

/*
 * The card itself is inert — no hover chrome and no click target. Its two
 * links carry the whole affordance: .card-more is an inline link trailing the
 * description, .card-show a button pinned to the card's bottom-right corner.
 */

ul.cards li.card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.card-more {
    margin-left: 0.35rem;
    color: var(--blue-500);
    text-decoration: none;
    white-space: nowrap;
}

.card-more:hover,
.card-more:focus-visible {
    text-decoration: underline;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.85rem;
}

.card-show {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg-muted);
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .12s, background .12s, color .12s;
}

.card-show:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--fg);
}

.card-show:focus-visible {
    border-color: rgba(59, 130, 246, 0.6);
    color: var(--fg);
}

.badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.badge-js      { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.25); }
.badge-vue     { background: rgba(66, 184, 131, 0.15);  color: #6ee7b7; border: 1px solid rgba(66, 184, 131, 0.3); }
.badge-react   { background: rgba(97, 218, 251, 0.15);  color: #7dd3fc; border: 1px solid rgba(97, 218, 251, 0.3); }
.badge-angular { background: rgba(221, 0, 49, 0.15);    color: #fca5a5; border: 1px solid rgba(221, 0, 49, 0.3); }

.name { font-family: var(--font-heading); font-weight: 700; }
.desc { color: var(--fg-muted); font-size: 0.85rem; }

@media (max-width: 720px) {
    body { grid-template-columns: 1fr; }
    aside { position: static; height: auto; }
    main { padding: 1.75rem 1.25rem 3rem; }
}
