/* FALLOUT 98 - MITTEN WASTES TERMINAL STYLESHEET */

/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #050505;
    --scanline-color: rgba(0, 0, 0, 0.5);
    --neon-green: #39ff14;
    --bright-blue: #0096FF;
    --golden-yellow: #ffd700; /* Vernors Gold */
    --text-main: #e0e0e0;
    --glass-panel: rgba(20, 30, 20, 0.85);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* SCANLINE OVERLAY - CRT EFFECT */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: 'Righteous', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

h1 {
    color: var(--golden-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 3rem;
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 10px;
}

h2 {
    color: var(--bright-blue);
    border-left: 5px solid var(--golden-yellow);
    padding-left: 15px;
}

h3 {
    color: var(--neon-green);
}

a {
    color: var(--bright-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--bright-blue);
}

a:hover {
    color: var(--neon-green);
    background-color: rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 8px var(--neon-green);
}

/* LAYOUT CONTAINERS */
.terminal-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
    background-color: var(--glass-panel);
    position: relative;
}

/* NAV / HEADER */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--neon-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.system-status {
    font-size: 0.8rem;
    color: var(--neon-green);
    font-family: 'Righteous', cursive;
}

/* MAIN PAGE SPECIFIC */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-image-container {
    width: 100%;
    aspect-ratio: 5/4;
    overflow: hidden;
    border: 2px solid var(--golden-yellow);
    margin-bottom: 25px;
    position: relative;
}

.welcome-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.2);
}

.intro-text {
    border-left: 1px solid var(--neon-green);
    border-right: 1px solid var(--neon-green);
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(0, 255, 0, 0.05);
    font-style: italic;
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.cat-btn {
    display: block;
    border: 2px solid var(--bright-blue);
    padding: 15px;
    text-align: center;
    font-family: 'Righteous', cursive;
    font-size: 1.2rem;
    color: var(--bright-blue);
    text-shadow: 0 0 5px var(--bright-blue);
}

.cat-btn:hover {
    background: var(--bright-blue);
    color: #000;
    box-shadow: 0 0 15px var(--bright-blue);
}

/* ARTICLE PAGE SPECIFIC */
.article-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-sidebar {
    flex: 1;
    min-width: 250px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--golden-yellow);
    padding: 10px;
    height: fit-content;
}

.article-content {
    flex: 2;
    min-width: 300px;
}

/* LIGHTBOX IMAGE (LOCKED 3:4) */
.wiki-image-box {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 2px solid var(--neon-green);
    margin-bottom: 10px;
    cursor: zoom-in;
    position: relative;
}

.wiki-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wiki-image-box:hover img {
    transform: scale(1.05);
}

.caption {
    font-size: 0.9rem;
    color: var(--golden-yellow);
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

/* LIGHTBOX MODAL */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--golden-yellow);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--text-main);
    font-family: 'Righteous';
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--neon-green);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--neon-green);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}