/* =========================================
   GLOBAL STYLES (Applies to all pages)
   ========================================= */
body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace; /* Government/Archive vibe */
    color: #eaeaea;
    background-color: #000;
}

/* Shared Button Style (Used on Landing Page and Map Teaser) */
.enter-btn, .enter-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.enter-btn:hover, .enter-link:hover {
    background: #fff;
    color: #000;
}

/* =========================================
   1. SECURE HUB DASHBOARD (index.html)
   ========================================= */
.hub-body {
    background-color: #050505;
    padding: 2rem;
    box-sizing: border-box;
}

.hub-layout {
    display: flex;
    height: calc(100vh - 4rem);
    border: 1px solid #333;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.hub-sidebar {
    width: 250px;
    border-right: 1px solid #333;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sys-title {
    font-size: 1rem;
    color: #666;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.sys-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sys-title a:hover {
    color: #fff; /* Brightens up when they hover over it */
}

.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.directory-list li {
    margin-bottom: 1rem;
}

.directory-list a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap; /* Prevents awkward text wrapping */
}

.directory-list a:hover, .active-link {
    color: #fff !important;
}

.sys-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: auto;
}

.sys-status a {
    color: #555;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.sys-status a:hover {
    color: #fff;
}

/* Main Content Area */
.hub-content {
    flex-grow: 1;
    padding: 2rem 4rem;
    background: #0a0a0a;
}

.content-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #444;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    color: #666;
    font-size: 0.8rem;
}

.content-body h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-body p {
    line-height: 1.6;
    color: #aaa;
}

/* Hub Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .hub-layout {
        flex-direction: column;
        height: auto;
    }
    .hub-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 1rem;
    }
    .directory-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hub-content {
        padding: 1.5rem;
    }
}

/* =========================================
   2. SEEKER LANDING PAGE
   ========================================= */
.landing-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    min-height: 100vh;
}

.landing-content {
    text-align: center;
    max-width: 800px; 
    padding: 2rem;
}

.seeker-drawing {
    max-width: 100%; 
    height: auto;
    margin-bottom: 2rem;
}

/* =========================================
   3. MAP TEASER (map-teaser.html)
   ========================================= */
:root {
    --cursor-x: 50%;
    --cursor-y: 50%;
}

.map-body {
    background-image: url('assets/images/conmapcolor-test.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    overflow: hidden;
}

.flashlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 250px at var(--cursor-x) var(--cursor-y),
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.95) 75%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #444;
    padding: 3rem;
    text-align: center;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.terminal-box h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: #888;
    margin-bottom: 2rem;
}

@keyframes blink {
    50% { opacity: 0; }
}


/* =========================================
   4. DOCUMENT VIEWER (For Long-Form Reading)
   ========================================= */

.document-viewer {
    overflow-y: auto; /* Adds a scrollbar to the content area so the sidebar stays fixed */
}

.back-link {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.text-document {
    max-width: 700px; /* Constrains the width for optimal reading */
    margin: 0 auto; /* Centers the document block */
}

.text-document h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #fff;
}

.doc-divider {
    border: 0;
    border-top: 1px dotted #444;
    margin: 2rem 0;
}

.text-document p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1.5rem;
}


/* =========================================
   5. VISUAL ASSETS GALLERY
   ========================================= */

.image-grid {
    display: grid;
    /* This automatically creates columns that fit the screen, never going smaller than 250px */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.art-card {
    margin: 0;
    border: 1px solid #333;
    background: #0a0a0a;
    padding: 0.5rem;
    transition: border-color 0.3s;
}

.art-card:hover {
    border-color: #fff;
}

.art-card img {
    width: 100%;
    height: 300px; /* Forces uniform height for the grid */
    object-fit: cover; /* Ensures images don't warp or stretch */
    display: block;
    filter: grayscale(100%) contrast(1.2); /* Makes them look like black & white photocopies */
    transition: filter 0.4s ease;
}

/* Brings the color back when hovered */
.art-card:hover img {
    filter: grayscale(0%) contrast(1);
}

.art-card figcaption {
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 1px dotted #333;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    color: #eaeaea;
    font-size: 0.9rem;
    font-weight: bold;
}

.file-meta {
    color: #666;
    font-size: 0.7rem;
}



/* =========================================
   6. INTERACTIVE MAP EXHIBIT
   ========================================= */

.interactive-map-container {
    width: 100%;
    height: 600px; /* How tall the map window is */
    border: 1px solid #444;
    background-color: #000 !important; /* Forces the Leaflet background to be black */
    cursor: grab;
}

.interactive-map-container:active {
    cursor: grabbing;
}

/* Restyling the Leaflet Zoom Buttons to look like Terminal UI */
.leaflet-control-zoom a {
    background-color: #111 !important;
    color: #eaeaea !important;
    border: 1px solid #444 !important;
    font-family: 'Courier New', Courier, monospace;
}

.leaflet-control-zoom a:hover {
    background-color: #fff !important;
    color: #000 !important;
}