/* =============================================================
   Zwartkop '96 Reunion Gallery — 90s Retro Theme (still usable)
   Palette: deep space bg, teal, hot-pink, electric-blue, purple
   ============================================================= */

/* ---- CSS Variables ---- */
:root {
    --bg:           #0a0a1a;
    --bg-card:      #12122a;
    --bg-card-alt:  #1a1a35;
    --teal:         #00e5cc;
    --pink:         #ff2d78;
    --blue:         #00aaff;
    --purple:       #b44aff;
    --yellow:       #ffe600;
    --text:         #d8d8f0;
    --text-muted:   #7777aa;
    --border:       #2a2a55;
    --pixel-font:   'Press Start 2P', monospace;
    --vt-font:      'VT323', monospace;
    --body-font:    'Roboto', sans-serif;
    --player-h:     64px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: calc(var(--player-h) + 40px);
    /* Subtle starfield background */
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(0, 170, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(180, 74, 255, 0.06) 0%, transparent 60%);
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ---- Typography ---- */
.retro-pixel { font-family: var(--pixel-font); font-size: 0.65rem; line-height: 1.8; }
.retro-vt    { font-family: var(--vt-font);    font-size: 1.4rem; }

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); text-decoration: none; }

h1, h2, h3 { font-family: var(--vt-font); letter-spacing: 1px; }

/* ---- Navbar ---- */
.retro-navbar {
    background: rgba(10, 10, 26, 0.96) !important;
    border-bottom: 2px solid var(--teal);
    box-shadow: 0 2px 16px rgba(0, 229, 204, 0.18);
    padding: .6rem 1rem;
}
.retro-brand {
    font-family: var(--pixel-font);
    font-size: .72rem;
    color: var(--teal) !important;
    text-shadow: 0 0 10px var(--teal);
    letter-spacing: 1px;
}
.retro-link {
    font-family: var(--pixel-font);
    font-size: .6rem;
    color: var(--text) !important;
    transition: color .2s, text-shadow .2s;
    padding: .4rem .8rem !important;
}
.retro-link:hover {
    color: var(--pink) !important;
    text-shadow: 0 0 8px var(--pink);
}
.pixel-star { color: var(--yellow); }

/* ---- Hero Banner ---- */
.retro-hero {
    background: linear-gradient(135deg, #0d0d2b 0%, #12002e 50%, #001a20 100%);
    border-bottom: 3px solid var(--teal);
    border-top: 3px solid var(--purple);
    padding: 2rem 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.retro-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 30px,
        rgba(0, 229, 204, 0.02) 30px,
        rgba(0, 229, 204, 0.02) 31px
    );
}
.retro-title {
    font-family: var(--vt-font);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--teal);
    text-shadow: 0 0 20px rgba(0, 229, 204, 0.6), 0 0 40px rgba(0, 229, 204, 0.2);
    margin: 0;
}
.retro-subtitle {
    font-family: var(--vt-font);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--pink);
    text-shadow: 0 0 12px rgba(255, 45, 120, 0.5);
    margin: .3rem 0 .5rem;
}
.retro-class-year {
    font-family: var(--pixel-font);
    font-size: clamp(.6rem, 2vw, 1rem);
    color: var(--yellow);
    text-shadow: 0 0 8px rgba(255, 230, 0, 0.6);
    letter-spacing: 4px;
    margin: 0;
}

/* ---- Cards ---- */
.retro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    overflow: hidden;
}
.retro-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 229, 204, 0.15);
}
.retro-card .card-title {
    font-family: var(--vt-font);
    font-size: 1.3rem;
    color: var(--teal);
    margin: 0 0 .2rem;
}
.retro-card .card-meta {
    font-size: .8rem;
    color: var(--text-muted);
}
.album-cover-wrap {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: var(--bg-card-alt);
}
.album-cover-wrap img,
.album-cover-wrap .no-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.album-cover-wrap .no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}
.album-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 229, 204, 0.85);
    color: #000;
    font-family: var(--pixel-font);
    font-size: .55rem;
    padding: 3px 7px;
    border-radius: 2px;
}

/* ---- Media grid ---- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.media-thumb {
    position: relative;
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    aspect-ratio: 4/3;
}
.media-thumb:hover {
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.25);
}
.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-thumb .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity .2s;
}
.media-thumb:hover .thumb-overlay { opacity: 1; }
.media-thumb .type-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 1.1rem;
    line-height: 1;
}

/* ---- Buttons ---- */
.retro-btn {
    font-family: var(--pixel-font);
    font-size: .6rem;
    border: 2px solid var(--teal);
    background: transparent;
    color: var(--teal);
    padding: .55rem 1.1rem;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background .2s, color .2s, box-shadow .2s;
}
.retro-btn:hover {
    background: var(--teal);
    color: #000;
    box-shadow: 0 0 14px rgba(0, 229, 204, 0.4);
}
.retro-btn-pink {
    border-color: var(--pink);
    color: var(--pink);
}
.retro-btn-pink:hover {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 45, 120, 0.4);
}
.retro-btn-sm {
    font-size: 1rem;
    border: none;
    background: none;
    color: var(--text);
    padding: 2px 6px;
    cursor: pointer;
    transition: color .2s;
}
.retro-btn-sm:hover { color: var(--teal); }
.retro-btn-play { color: var(--teal) !important; }

/* ---- Forms ---- */
.retro-form label {
    font-family: var(--pixel-font);
    font-size: .6rem;
    color: var(--teal);
    display: block;
    margin-bottom: .3rem;
}
.retro-form .form-control,
.retro-form .form-select {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 2px;
}
.retro-form .form-control:focus,
.retro-form .form-select:focus {
    background: var(--bg-card-alt);
    border-color: var(--teal);
    color: var(--text);
    box-shadow: 0 0 0 2px rgba(0, 229, 204, 0.25);
}
.retro-form .form-control::placeholder { color: var(--text-muted); }

/* ---- Upload area ---- */
.upload-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    color: var(--text-muted);
}
.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: var(--teal);
    background: rgba(0, 229, 204, 0.04);
    color: var(--teal);
}
.upload-drop-zone .drop-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
#upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}
#upload-preview img,
#upload-preview video {
    max-width: 120px;
    max-height: 90px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 2px;
}

/* ---- Slideshow ---- */
#slideshow-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#slideshow-overlay.active { display: flex; }
#slideshow-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--teal);
    box-shadow: 0 0 40px rgba(0, 229, 204, 0.2);
}
#slideshow-caption {
    font-family: var(--vt-font);
    font-size: 1.2rem;
    color: var(--teal);
    margin-top: .8rem;
    text-align: center;
}
#slideshow-controls {
    position: absolute;
    bottom: 24px;
    display: flex;
    gap: 12px;
}
#slideshow-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
#slideshow-close:hover { color: var(--pink); }
.slideshow-progress {
    width: 60vw;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: .8rem;
    overflow: hidden;
}
.slideshow-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    width: 0%;
    transition: width linear;
}

/* ---- Music player ---- */
.retro-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-h);
    background: rgba(10, 10, 26, 0.97);
    border-top: 2px solid var(--purple);
    box-shadow: 0 -4px 20px rgba(180, 74, 255, 0.2);
    z-index: 1000;
    padding: 0 1rem;
}
.player-inner { height: 100%; }
.player-label { color: var(--purple); font-size: .6rem; white-space: nowrap; }
#player-track-name {
    color: var(--text);
    font-size: .65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.retro-range {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}
.retro-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple);
    cursor: pointer;
}

/* ---- Footer bar ---- */
.retro-footer {
    background: rgba(10, 10, 26, 0.98);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .75rem;
    position: fixed;
    bottom: var(--player-h);
    left: 0;
    right: 0;
    padding: 4px 0;
    z-index: 999;
}
.retro-footer .retro-link { color: var(--teal); }

/* ---- Alerts ---- */
.retro-alert {
    border-left: 3px solid var(--teal);
    background: rgba(0, 229, 204, 0.06);
    color: var(--teal);
    font-family: var(--vt-font);
    font-size: 1.1rem;
    padding: .8rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.2rem;
}
.retro-alert.error {
    border-color: var(--pink);
    background: rgba(255, 45, 120, 0.06);
    color: var(--pink);
}

/* ---- Admin area ---- */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}
.admin-card h2 {
    font-family: var(--vt-font);
    color: var(--pink);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.pending-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: block;
}

/* ---- Section headers ---- */
.retro-section-title {
    font-family: var(--vt-font);
    color: var(--pink);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .4rem;
}

/* ---- Badges ---- */
.badge-teal   { background: var(--teal);   color: #000; font-family: var(--pixel-font); font-size: .5rem; }
.badge-pink   { background: var(--pink);   color: #fff; font-family: var(--pixel-font); font-size: .5rem; }
.badge-purple { background: var(--purple); color: #fff; font-family: var(--pixel-font); font-size: .5rem; }

/* ---- Responsive tweaks ---- */
@media (max-width: 576px) {
    .retro-brand { font-size: .55rem; }
    .media-grid  { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .player-label { display: none; }
}
