/* ==========================================================================
   P.H.U. SZLAM-GUMA GLOBAL STYLESHEET
   THEME: HEAVY INDUSTRIAL BRUTALISM (RESTORED)
   WARNING: DO NOT ALTER THE SLUDGE GREEN VARIABLE. BOGDAN WILL KNOW.
   ========================================================================== */

:root {
    /* The Original Color Palette */
    --bg-concrete: #1c1c1c;       /* Dark, oily asphalt */
    --text-ash: #e0e0e0;          /* Standard readable text */
    --sludge-green: #3a4729;      /* The exact color of a backed-up septic tank */
    --rust-red: #8b2500;          /* Oxidized metal / warning state */
    --toxic-yellow: #d4af37;      /* High-vis warning color */
    --pure-black: #000000;
    --terminal-green: #00ff00;    /* For the diagnostic readouts */

    /* Typography */
    --font-main: 'Courier New', Courier, monospace; /* Clinical, terminal-like */
    --font-header: 'Arial Black', Impact, sans-serif; /* Aggressive, heavy */

    /* Structure */
    --border-thick: 4px solid var(--pure-black);
    --border-thin: 1px solid var(--pure-black);
    --brutalist-shadow: 6px 6px 0px var(--pure-black);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-concrete);
    color: var(--text-ash);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    text-transform: uppercase;
    color: var(--toxic-yellow);
    letter-spacing: 1px;
}

a {
    color: var(--toxic-yellow);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--rust-red);
    transition: all 0.1s linear;
}

a:hover {
    background-color: var(--toxic-yellow);
    color: var(--pure-black);
}

/* Make sure the 32px Windows icons render cleanly at 16px */
img {
    image-rendering: pixelated;
    vertical-align: middle;
}

/* ==========================================================================
   TOP HEADER & NAVIGATION
   ========================================================================== */
.marquee-box {
    background-color: var(--rust-red);
    color: white;
    font-family: var(--font-header);
    font-weight: bold;
    padding: 8px 0;
    border: var(--border-thick);
    box-shadow: var(--brutalist-shadow);
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.nav-bar {
    background-color: var(--sludge-green);
    border: var(--border-thick);
    box-shadow: var(--brutalist-shadow);
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-bar a {
    background-color: var(--bg-concrete);
    color: var(--text-ash);
    padding: 10px 15px;
    border: var(--border-thick);
    box-shadow: 3px 3px 0px var(--pure-black);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-bar a:hover {
    background-color: var(--rust-red);
    color: white;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--pure-black);
}

/* ==========================================================================
   PAGE LAYOUT (3-COLUMN GRID)
   ========================================================================== */
.page-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.sidebar-left, .sidebar-right {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   BRUTALIST CONTAINERS (Replaces the gray Windows boxes)
   ========================================================================== */
.window-container {
    background-color: var(--pure-black);
    border: var(--border-thick);
    box-shadow: var(--brutalist-shadow);
}

.window-title {
    background-color: var(--sludge-green);
    color: #ffffff;
    font-family: var(--font-header);
    padding: 10px 15px;
    border-bottom: var(--border-thick);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0px var(--pure-black);
}

.window-content {
    padding: 1.5rem;
    background-color: #1a1a1a; /* Slightly lighter than pure black for readability */
}

/* ==========================================================================
   DIAGNOSTIC LISTS (Sidebars)
   ========================================================================== */
.diagnostic-list {
    list-style: none;
    font-size: 0.85rem;
}

.diagnostic-list li {
    padding: 6px 0;
    border-bottom: var(--border-thin);
    display: flex;
    align-items: center;
    gap: 10px;
}

.diagnostic-list li:last-child {
    border-bottom: none;
}

/* Terminal vibes for the left sidebar links */
.sidebar-left .diagnostic-list a {
    color: var(--terminal-green);
    border-bottom: none;
    text-decoration: none;
}
.sidebar-left .diagnostic-list a:hover {
    background-color: var(--terminal-green);
    color: var(--pure-black);
}
.sidebar-left .diagnostic-list a.critical { color: #ff3333; font-weight: bold; }
.sidebar-left .diagnostic-list a.warning { color: var(--toxic-yellow); }

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-concrete);
    border: var(--border-thick);
    padding: 1.5rem;
    box-shadow: 4px 4px 0px var(--pure-black);
    transition: transform 0.1s linear;
}

.service-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--rust-red);
    background-color: #222222;
}

.service-card h4 {
    border-bottom: var(--border-thin);
    padding-bottom: 0.5rem;
    margin-bottom: 10px;
    color: var(--rust-red);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* ==========================================================================
   FORMS & MISC (Polls)
   ========================================================================== */
form {
    background-color: var(--pure-black);
    padding: 10px;
    border: var(--border-thin);
}

button {
    background-color: var(--toxic-yellow);
    color: var(--pure-black);
    font-family: var(--font-header);
    border: var(--border-thick);
    padding: 5px 15px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
    box-shadow: 2px 2px 0px #ffffff;
}

button:hover {
    background-color: var(--rust-red);
    color: white;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--pure-black);
    color: var(--toxic-yellow);
    text-align: center;
    padding: 2rem 1rem;
    border: var(--border-thick);
    font-size: 0.8rem;
    margin-top: 30px;
    box-shadow: var(--brutalist-shadow);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1000px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar-left, .sidebar-right {
        width: 100%;
    }

    /* Prevent the massive 60-item list from eating the entire mobile screen */
    .sidebar-left .window-content {
        max-height: 400px;
        overflow-y: auto;
    }
}
