:root {
    --font-mono-local: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
}

body {
    font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
    letter-spacing: 0.02em;
    margin: 0; padding: 0;
    overflow-x: hidden; overflow-y: auto;
    background: var(--bg, #14110f);
    color: var(--text, #ece6df);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Visible H1 for proxmox page */
.proxmox-h1 {
    font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 0.75rem;
    color: var(--teal, #5E9C9A);
    text-align: center;
    letter-spacing: 0.12em;
    margin: 15px 20px 5px 20px;
    padding: 0;
    opacity: 0.85;
}

.twin-monitor-desk {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    flex-wrap: wrap;
    padding: 20px 20px 40px 20px;
    box-sizing: border-box;
}

/* === PHILIPS MONITOR CHASSIS === */
.philips-chassis {
    flex: 1 1 550px;
    max-width: 650px;
    min-height: 550px;
    background: var(--surface, #1f1a16);
    border-radius: var(--radius, 14px);
    box-shadow: 2px 2px 5px rgba(255,255,255,0.03), -3px -3px 8px rgba(0,0,0,0.2), 15px 15px 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #2e2721);
    position: relative;
}

/* The deep, angled inset bezel */
.philips-bezel-inset {
    margin: 20px 20px 10px 20px;
    flex-grow: 1;
    background: var(--surface-2, #271f1a);
    border-top: 18px solid var(--border, #2e2721);
    border-bottom: 22px solid var(--border, #2e2721);
    border-left: 20px solid var(--border, #2e2721);
    border-right: 20px solid var(--border, #2e2721);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    box-sizing: border-box;
    min-height: 400px;
}

/* The screen area */
.philips-screen {
    width: 100%;
    flex-grow: 1;
    box-sizing: border-box;
    background-color: var(--bg, #14110f);
    border-radius: 8px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text, #ece6df);
    line-height: 1.6;
    font-size: 0.85rem;
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Centered variant for the gallery monitor */
.philips-screen.screen-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Screen glare */
.philips-screen::before {
    content: " "; display: block; position: absolute; top: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    z-index: 3; pointer-events: none; border-radius: 8px 8px 0 0;
}

/* The Bottom Control Panel */
.philips-control-panel {
    height: 45px; margin: 0 20px 15px 20px;
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-bottom: 5px;
}

.philips-logo {
    font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 700; color: var(--muted, #a89e93); font-size: 0.85rem; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}

.philips-shield {
    width: 12px; height: 14px; border: 1.5px solid var(--muted, #a89e93); border-radius: 2px;
    background: repeating-linear-gradient(45deg, var(--muted, #a89e93), var(--muted, #a89e93) 1px, transparent 1px, transparent 3px);
}

.philips-model-text {
    font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 0.65rem; color: var(--muted, #a89e93); letter-spacing: 1px; margin-right: 15px;
}

.power-btn-area { display: flex; align-items: center; gap: 10px; }
.power-btn {
    width: 25px; height: 12px; background: var(--surface-2, #271f1a); border: 1px solid var(--border, #2e2721);
    border-bottom: 3px solid var(--bg, #14110f); border-radius: 2px; box-shadow: 2px 2px 3px rgba(0,0,0,0.4);
}
.power-led { width: 6px; height: 6px; background: var(--teal, #5E9C9A); border-radius: 50%; box-shadow: 0 0 5px var(--teal, #5E9C9A); }

/* Gallery inside left monitor */
.gallery-image {
    width: 100%; height: auto; max-height: 250px; object-fit: contain;
    border-radius: 5px; border: 1px solid var(--border, #2e2721); margin-bottom: 15px;
}

.gallery-controls { display: flex; justify-content: center; gap: 15px; position: relative; z-index: 10; }
.gallery-btn {
    background: var(--surface, #1f1a16); color: var(--teal, #5E9C9A); border: 1px solid var(--teal, #5E9C9A);
    font-family: inherit; font-size: 1rem; cursor: pointer; padding: 5px 15px; border-radius: 4px;
}
.gallery-btn:hover { background: var(--teal, #5E9C9A); color: var(--bg, #14110f); }

/* Text elements inside the screen */
.prox-h4 {
    color: var(--amber, #FFB454); font-weight: 700; margin-bottom: 5px;
    font-size: 0.85rem; font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
}

.prox-text {
    display: block; margin-bottom: 20px; color: var(--muted, #a89e93);
    opacity: 0.9; font-size: 0.8rem;
    line-height: 1.6;
}

/* Back button */
.back-comms-btn {
    display: inline-block; margin: 20px 0 0 0; color: var(--text, #ece6df); text-decoration: none;
    font-weight: 600; border: 2px solid var(--teal, #5E9C9A); padding: 8px 20px; border-radius: 4px;
    font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
}
.back-comms-btn:hover { background: var(--teal, #5E9C9A); color: var(--bg, #14110f); }

/* Blinking cursor */
.cursor {
    display: inline-block; width: 10px; height: 1.2em;
    background-color: var(--teal, #5E9C9A); animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Mobile: stack monitors vertically */
@media (max-width: 900px) {
    .twin-monitor-desk { flex-direction: column; align-items: center; }
    .philips-chassis { max-width: 95vw; min-height: 450px; }
    .proxmox-h1 { font-size: 0.6rem; }
}

.site-footer {
    margin-top: 64px; padding-top: 24px;
    border-top: 1px solid var(--border, #2e2721);
    text-align: center; color: var(--muted, #a89e93); font-size: .9rem;
}
.site-footer a { color: var(--teal, #5E9C9A); }
