/* 
   GALACTIC ARCHIVES DESIGN SYSTEM
   Shared CSS for the Chattooine Public Website
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Slab:wght@300;400;700&display=swap');

:root {
    --primary-black: #0a0a0b;
    --tatooine-gold: #ffc107;
    --tatooine-gold-low: rgba(255, 193, 7, 0.2);
    --imperial-cyan: #00fff9;
    --imperial-cyan-glow: rgba(0, 255, 249, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-body: #ced4da;
    --text-header: #fff;
    --orbitron: 'Orbitron', sans-serif;
    --roboto-slab: 'Roboto Slab', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary-black);
    color: var(--text-body);
    font-family: var(--roboto-slab);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--tatooine-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--tatooine-gold-low);
}

/* --- Layout Utilities --- */

.container-archives {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Typography --- */

h1,
h2,
h3,
h4,
.font-archives {
    font-family: var(--orbitron);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-header);
}

.text-gold {
    color: var(--tatooine-gold);
}

.text-cyan {
    color: var(--imperial-cyan);
}

/* --- Glassmorphism components --- */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--tatooine-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* --- Command Deck Layered Architecture --- */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    /* Deepest layer */
    pointer-events: none;
}

.viewscreen-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    /* Middle layer - purely decorative */
    pointer-events: none;
    border: 20px solid #1a1a1d;
    /* Metallic Bezel */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 255, 249, 0.1);
    box-sizing: border-box;
}

/* Add a tactical HUD-like vignette */
.viewscreen-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    /* Over everything for texture */
    pointer-events: none;
    background: url("../assets/img/noise.png");
    opacity: 0.05;
}

/* Enhanced Glitch Refinement */
.glitch-archives {
    position: relative;
    display: inline-block;
}

/* --- Navigation / Menu specifically --- */
.nav-archives {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-left: 3px solid var(--tatooine-gold);
}

.archive-link .link-label {
    font-family: var(--orbitron);
    font-size: 1.2rem;
    font-weight: 700;
}

.archive-link:hover {
    border-left-width: 8px;
    padding-left: 20px;
}

/* --- Shared Sidebar Navigation --- */
.archives-sidebar {
    position: fixed;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 280px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.sidebar-brand {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--orbitron);
    font-size: 0.9rem;
    color: var(--text-body);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--tatooine-gold);
}

.nav-item.active {
    background: var(--tatooine-gold-low);
    color: var(--tatooine-gold);
    border-color: var(--tatooine-gold-low);
}

.nav-item.special {
    margin-top: 1rem;
    border-color: var(--imperial-cyan-glow);
    color: var(--imperial-cyan);
}

.nav-item.special:hover {
    background: var(--imperial-cyan-glow);
    color: #fff;
}

.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    padding: 10px 20px;
}

/* Archive Main Content Area */
.archive-main {
    margin-left: 320px;
    padding: 60px 40px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    /* Content on top */
}

.menu-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    .archives-sidebar {
        left: -320px;
        transition: left 0.3s ease;
        bottom: 20px;
        top: 80px;
    }

    .archives-sidebar.open {
        left: 20px;
    }

    .archive-main {
        margin-left: 0;
        padding: 80px 20px 20px 20px;
    }

    .mobile-nav-toggle {
        display: flex;
    }
}

/* ===================== NATIVE UTILITY CLASSES ===================== */
/* Replaces Bootstrap utilities used on pages that don't need the full framework */

/* Spacing */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.ps-3 {
    padding-left: 1rem;
}

.pt-3 {
    padding-top: 1rem;
}

/* Typography */
.lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

.small,
small {
    font-size: 0.85rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5);
}

.text-white {
    color: #fff;
}

/* Headings resized (h5 equivalent) */
.h5 {
    font-size: 1rem;
    line-height: 1.4;
}

/* Lists */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

/* Borders */
.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}