/* Pip-Boy Base Styles - Consistent theme across all DwellerDan pages */

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

:root {
    /* Pip-Boy Interface Theme - GREEN VARIANT */
    --bg-dark: #0a1520;
    --bg-surface: #152838;
    --bg-card: #0c1a28;
    --bg-very-dark: #040810;
    --bg-secondary: #1a2b3a;

    --shadow-dark: rgba(0, 0, 0, 0.95);
    --shadow-light: rgba(0, 200, 255, 0.12);
    --shadow-inner-dark: rgba(0, 0, 0, 0.8);
    --shadow-inner-light: rgba(0, 200, 255, 0.05);

    --card-beige: #d4a76a;
    --card-brown: #8b6f47;
    --card-green: #7dd4d4;
    --card-orange: #bfee27;
    --card-blue: #66aaff;
    --card-red: #ff99aa;
    --card-purple: #cc99ff;
    --card-yellow: #1aff3a;
    --card-cyan: #6fffaa;

    --text-light: #a0f5c9;
    --text-muted: #6a9a9a;
    --text-dark: #050a0a;
    --text-primary: #a0f5c9;
    --text-secondary: #7aa5a5;

    --accent-primary: #8eff77;
    --accent-secondary: #bfee27;
    --accent-glow: #aaffff;
    --accent-subtle: #6a9a9a;
    --accent-orange: #00ddff;

    --border-color: #3a5a5a;
    --brutal-border: 2px;

    /* Pip-Boy Frame Colors */
    --pipboy-frame: #2a2f1b;
    --pipboy-metal: #3d4331;
    --pipboy-screen-glow: #8eff77;
    --pipboy-button: #1a1d14;
    --pipboy-text: #8eff77;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #000;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Main Screen Container - fills space between side panels */
.pipboy-screen-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 90vw);
    height: 100vh;
    background: var(--bg-dark);
    overflow: hidden;
    z-index: 10;
}

/* Screen content scrollable area */
.pipboy-screen-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Scrollbar Styling for Pip-Boy */
.pipboy-screen-content::-webkit-scrollbar {
    width: 10px;
}

.pipboy-screen-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.pipboy-screen-content::-webkit-scrollbar-thumb {
    background: var(--pipboy-text);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--pipboy-text);
}

/* Pip-Boy Side Panels */
.pipboy-left-panel, .pipboy-right-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - min(900px, 90vw)) / 2);
    background: linear-gradient(135deg, var(--pipboy-frame) 0%, #1f2318 50%, var(--pipboy-frame) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    z-index: 1;
}

.pipboy-left-panel {
    left: 0;
    border-right: 2px solid var(--pipboy-metal);
}

.pipboy-right-panel {
    right: 0;
    border-left: 2px solid var(--pipboy-metal);
}

/* Pip-Boy Controls */
.pipboy-knob {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--pipboy-metal), var(--pipboy-button));
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.5), 0 3px 5px rgba(0, 0, 0, 0.8);
}

.pipboy-knob::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: var(--pipboy-text);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--pipboy-text);
}

.pipboy-button {
    width: 80px;
    height: 30px;
    background: linear-gradient(to bottom, var(--pipboy-metal), var(--pipboy-button));
    border: 2px solid #000;
    border-radius: 5px;
    color: var(--pipboy-text);
    font-family: 'Special Elite', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.1s;
}

a.pipboy-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pipboy-button:hover {
    background: var(--pipboy-text);
    color: var(--pipboy-button);
}

.pipboy-button.active {
    background: var(--pipboy-text);
    color: var(--pipboy-button);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 -2px 4px rgba(0, 0, 0, 0.8);
}

.pipboy-gauge {
    width: 100px;
    height: 40px;
    background: #000;
    border: 2px solid var(--pipboy-metal);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.pipboy-gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 75%;
    background: linear-gradient(to right, var(--pipboy-text), var(--pipboy-screen-glow));
    box-shadow: 0 0 20px var(--pipboy-text);
}

.pipboy-led {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, var(--pipboy-text), transparent);
    border: 1px solid var(--pipboy-metal);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--pipboy-text);
}

.pipboy-label {
    font-family: 'Special Elite', monospace;
    font-size: 9px;
    color: var(--pipboy-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--pipboy-text);
    margin-top: 5px;
}

.pipboy-screen-number {
    font-family: 'Special Elite', monospace;
    font-size: 48px;
    color: var(--pipboy-text);
    text-shadow: 0 0 20px var(--pipboy-text);
    font-weight: bold;
}

.pipboy-vents {
    width: 80px;
    height: 60px;
    background: repeating-linear-gradient(0deg, var(--pipboy-button) 0px, var(--pipboy-button) 4px, #000 4px, #000 8px);
    border: 2px solid var(--pipboy-metal);
    border-radius: 3px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation */
.nav {
    background: linear-gradient(145deg, #152838 0%, #0a1520 100%);
    border-bottom: 2px solid var(--accent-primary);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(142, 255, 119, 0.3);
}

.nav-container {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent-primary);
    font-weight: 700;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(142, 255, 119, 0.5);
}

.nav-brand:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 15px rgba(142, 255, 119, 0.8);
}

.nav-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-subtle));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 900;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(142, 255, 119, 0.5);
}

/* Responsive - Tablet and smaller (including landscape) */
@media (max-width: 1400px) {
    .pipboy-left-panel,
    .pipboy-right-panel {
        display: none;
    }

    .pipboy-screen-wrapper {
        width: 100vw;
    }
}

@media (max-width: 640px) {
    .pipboy-screen-content {
        padding: 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
}
