/* ---------------------------------------------------------------
   SilvrPS Demonlist — theme layer on top of pointercrate's base CSS.
   Light body (matches the real pointercrate.com) instead of black,
   plus decorative side accents, tab bar, and small animations.
--------------------------------------------------------------- */

body {
    background-color: #f4f4f6;
    min-height: 100vh;
}

/* ---------------------------------------------------------------
   Nav bar — built fresh instead of styling pointercrate's own nav
   classes, because those assume a fixed centered content column and
   a hamburger/collapse system this project never wired up (which is
   why nav links were vanishing below 1072px wide). This version is
   self-contained: gradient background, own responsive breakpoint,
   own mobile menu toggle (pure CSS, no JS needed).
--------------------------------------------------------------- */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 24px;
    background: linear-gradient(90deg, #00d4e0 0%, #ffe600 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    font-family: "Akira Expanded", "Montserrat", sans-serif;
    color: #10151a;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.15em;
    text-decoration: none;
    white-space: nowrap;
}

/* "Akira Expanded" is a commercially-licensed font (free for personal use
   only) — see static/fonts/README-akira-font.txt for how to add a
   licensed copy. Falls back to Montserrat until then. */
@font-face {
    font-family: "Akira Expanded";
    src: url("../fonts/akira-expanded.woff2") format("woff2"),
         url("../fonts/akira-expanded.woff") format("woff");
    font-weight: normal;
    font-display: swap;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav-links a {
    color: #10151a;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.site-nav-links a:hover {
    background: rgba(255, 255, 255, 0.35);
}

.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    font-size: 1.6em;
    line-height: 1;
    color: #10151a;
    cursor: pointer;
    padding: 4px 8px;
}

@media (max-width: 860px) {
    .site-nav {
        padding: 12px 16px;
    }

    .nav-toggle-label {
        display: block;
    }

    .site-nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.15);
        padding-top: 6px;
    }

    .nav-toggle-checkbox:checked ~ .site-nav-links {
        display: flex;
    }

    .site-nav-links a {
        padding: 12px 8px;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
}

.panel {
    background: #fff;
    border: 1px solid #e4e4e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---------------- animations ---------------- */
@keyframes dl-fade-in-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in, .panel.fade {
    animation: dl-fade-in-up 0.35s ease both;
}

.demon-panel {
    animation: dl-fade-in-up 0.3s ease both;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
}

.demon-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.demon-link {
    text-decoration: none;
    color: inherit;
}

.demon-link h2 {
    transition: color 0.15s ease;
}

.demon-link:hover h2 {
    color: #0881c6;
}

.button, .tab-button {
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.button:active, .tab-button:active {
    transform: scale(0.97);
}

/* ---------------- video / iframe containers ---------------- */
/* This class is referenced by app.js and demon.js but was never
   actually defined anywhere in the copied pointercrate CSS, which
   is why thumbnails/embeds were rendering squished. */
.ratio-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
}

/* ---------------- list tabs ---------------- */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    border: 1px solid #e0e0e5;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .tab-bar {
        border-radius: 14px;
    }
}

.tab-button {
    flex: 1 1 0;
    padding: 14px 20px;
    border: none;
    border-right: 1px solid #e0e0e5;
    background: #fff;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background: #f4f8fb;
    color: #0881c6;
}

.tab-button.active {
    background: #0881c6;
    color: #fff;
}

/* Staff Panel's tab bar — deliberately a different class from .tab-bar's
   sibling ".tab-content" naming collides with a pre-existing pointercrate
   rule (`.tab-content:not(.tab-content-active) { display: none; }`) that
   hides anything with that class by default. That collision was hiding
   every button in the Staff Panel regardless of role. */
.staff-tab-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ---------------- back-to-list link ---------------- */
.back-link {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 14px;
    border: 1px solid #cfd2d8;
    border-radius: 6px;
    background: #eef0f3;
    color: #333 !important;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none !important;
}

.back-link:hover {
    border-color: #0881c6;
    color: #0881c6 !important;
    background: #eaf4fb;
}

#search-box {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ---------------- team / changelog ---------------- */
.team-group h3 {
    color: #0881c6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.changelog-entry {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.changelog-entry:last-child {
    border-bottom: none;
}

.victor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.victor-list li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}
