/* --- Fallout New Vegas Terminal Theme --- */

@keyframes crt-flicker {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.99; }
}

body {
    margin: 0;
    padding: 0;
    background-color: #1a0f00; /* Deep dark amber shadow */
    color: #ffb000;            /* Classic New Vegas Amber Phosphor */
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 176, 0, 0.7);
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    animation: crt-flicker 0.15s infinite;
}

/* --- CRT Scanline Overlay Effect --- */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 10, 0, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg, 
        rgba(255, 0, 0, 0.03), 
        rgba(0, 255, 0, 0.01), 
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    z-index: 9999;
    pointer-events: none; /* Allows clicking through the overlay */
}

/* --- Main Framework Container --- */
.terminal-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    border: 2px solid #ffb000;
    background-color: #221400;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 176, 0, 0.2);
    position: relative;
}

/* --- Header Section --- */
.terminal-header h1 {
    font-size: 1.6rem;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

.system-status {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.terminal-divider {
    border: none;
    border-top: 2px dashed #ffb000;
    margin: 15px 0 25px 0;
}

/* --- Content Styling --- */
.terminal-intro {
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 1rem;
}

.category-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 4px 8px;
    background-color: rgba(255, 176, 0, 0.1);
    display: inline-block;
}

/* --- Interactive Elements (Collapsible Menus) --- */
.thought-entry {
    margin-bottom: 15px;
    border-left: 3px solid #ffb000;
    padding-left: 15px;
}

summary {
    cursor: pointer;
    font-size: 1.05rem;
    padding: 5px 0;
    user-select: none;
    outline: none;
}

summary:hover {
    background-color: #ffb000;
    color: #1a0f00;
    text-shadow: none;
}

/* Add terminal bracket markers to the summary box */
summary::marker {
    color: #ffb000;
}
.thought-entry[open] summary:hover {
    color: #1a0f00;
}

/* --- Lists & Hyperlinks --- */
.thought-list {
    list-style: none;
    padding-left: 10px;
    margin-top: 10px;
}

.thought-list li {
    margin-bottom: 12px;
}

.thought-list a {
    color: #ffb000;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.1s ease;
}

/* Pseudo-selector to inject iconic terminal brackets around links on hover */
.thought-list a:hover {
    transform: translateX(5px);
}

.thought-list a:hover::before {
    content: "> [ ";
}

.thought-list a:hover::after {
    content: " ]";
}

/* --- Footer --- */
.terminal-footer {
    margin-top: 50px;
    border-top: 2px dashed #ffb000;
    padding-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Article Main Layout & Readability Tuning --- */
.thought-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Big terminal title */
.thought-article h1 {
    font-size: 2rem;
    text-transform: uppercase;
    border-bottom: 2px dashed #ffb000;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

/* Metadata text (Date / Category) */
.article-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
}

.article-meta span::before {
    content: "// ";
}

/* Section Headers */
.thought-article h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
    background-color: rgba(255, 176, 0, 0.1);
    padding: 6px 10px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid #ffb000;
}

/* Enhanced Prose Readability */
.thought-article p {
    font-size: 1.05rem;
    line-height: 1.7; /* Extra breathing room so the glowing mono font doesn't blur together */
    margin-bottom: 20px;
    text-align: justify;
    color: rgba(255, 176, 0, 0.95); /* Slightly softened amber to prevent eye fatigue */
}

/* --- Embedded Media (GIFs/Images) --- */
.thought-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border: 2px solid #ffb000;
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.3);
    
    /* Optional: Gives images a vintage green/amber matrix tint to blend into the CRT screen */
    filter: grayscale(1) sepia(1) hue-rotate(5deg) saturate(2); 
}
