
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap');

:root {
    --bg: #050805;
    --panel: rgba(8, 16, 9, 0.92);
    --green: #65ff79;
    --green-bright: #a5ffad;
    --green-dark: #238b37;
    --green-dim: #4b9b57;
    --text: #c5e9c8;
    --muted: #55765a;
    --border: rgba(101, 255, 121, 0.2);
    --glow: 0 0 8px rgba(101, 255, 121, 0.35);
    --font: "Share Tech Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(20, 75, 29, 0.13), transparent 42%),
        radial-gradient(ellipse at 50% 100%, rgba(11, 44, 17, 0.13), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.14;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.scanlines {
    position: fixed;
    z-index: 20;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.65) 3px,
        rgba(0, 0, 0, 0.65) 4px
    );
}

.screen-glow {
    position: fixed;
    z-index: 19;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.75);
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    color: var(--bg);
    background: var(--green);
}

.container {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* HEADER */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-bright);
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: var(--glow);
}

.brand-icon {
    font-size: 24px;
}

.brand-slash {
    color: var(--green-dark);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dim);
    font-size: 11px;
    letter-spacing: 1px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

.status-divider {
    color: var(--muted);
}

/* HERO */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 54px 0 40px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--green-dim);
    font-size: 11px;
    letter-spacing: 3px;
    animation: fade-in 1s ease both;
}

.eyebrow::before {
    content: "[ ";
    color: var(--green);
}

.eyebrow::after {
    content: " ]";
    color: var(--green);
}

.plague-doctor {
    margin: 0;
    color: var(--green);
    font-family: "VT323", monospace;
    font-size: clamp(12px, 1.5vw, 17px);
    line-height: 1.05;
    text-align: left;
    text-shadow:
        0 0 5px rgba(101, 255, 121, 0.8),
        0 0 18px rgba(101, 255, 121, 0.35);
    animation: doctor-glow 4s ease-in-out infinite;
}

.hero-title {
    margin: 10px 0 0;
    color: var(--green-bright);
    font-family: "VT323", monospace;
    font-size: clamp(52px, 8vw, 82px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 9px;
    text-shadow:
        0 0 8px rgba(101, 255, 121, 0.8),
        0 0 24px rgba(101, 255, 121, 0.25);
}

.hero-subtitle {
    margin: 14px 0 0;
    color: var(--green-dim);
    font-size: 11px;
    letter-spacing: 3px;
}

.subtitle-divider {
    margin: 0 8px;
    color: var(--green);
}

.hero-line {
    width: min(280px, 70%);
    height: 1px;
    margin-top: 30px;
    background: linear-gradient(90deg, transparent, var(--green-dark), transparent);
}

/* MAIN LAYOUT */

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 22px;
    align-items: start;
    padding-bottom: 36px;
}

/* WINDOW COMPONENTS */

.terminal-window,
.info-window {
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow:
        0 0 25px rgba(0, 0, 0, 0.25),
        inset 0 0 25px rgba(20, 70, 28, 0.04);
}

.terminal-window {
    min-width: 0;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(22, 43, 24, 0.35);
    color: var(--green-dim);
    font-size: 11px;
    letter-spacing: 1px;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls span {
    width: 7px;
    height: 7px;
    border: 1px solid var(--green-dark);
    border-radius: 50%;
}

.window-controls span:first-child {
    background: var(--green-dark);
    box-shadow: 0 0 5px rgba(101, 255, 121, 0.4);
}

.window-title {
    margin-left: 10px;
    margin-right: auto;
}

.window-label {
    color: var(--muted);
    font-size: 10px;
}

/* TERMINAL */

.terminal-body {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 20px;
}

.terminal-welcome {
    margin-bottom: 18px;
}

.terminal-welcome p {
    margin: 0 0 5px;
}

.version {
    color: var(--green-dim);
}

.muted {
    color: var(--muted);
}

.command-highlight {
    color: var(--green-bright);
    text-shadow: var(--glow);
}

#terminal-output {
    display: flex;
    flex-direction: column;
    gap: 13px;
    overflow-wrap: anywhere;
}

.command-entry {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.command-echo {
    color: var(--green-bright);
}

.command-result {
    color: var(--text);
    white-space: pre-wrap;
    line-height: 1.7;
}

.command-result .accent {
    color: var(--green);
}

.command-result .muted {
    color: var(--muted);
}

.input-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.prompt {
    flex-shrink: 0;
    color: var(--green);
    text-shadow: var(--glow);
}

#command {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    color: var(--green-bright);
    caret-color: var(--green);
    font-size: 14px;
}

#command:focus {
    outline: none;
}

.terminal-hint {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(101, 255, 121, 0.09);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.terminal-hint span {
    padding: 0 5px;
    color: var(--green-dark);
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.info-content {
    padding: 18px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(101, 255, 121, 0.08);
}

.info-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.7px;
}

.info-value {
    color: var(--green);
    font-size: 10px;
    text-align: right;
}

.info-value .status-dot {
    width: 5px;
    height: 5px;
    margin-right: 3px;
}

.activity-bar {
    height: 3px;
    margin-top: 20px;
    overflow: hidden;
    background: rgba(101, 255, 121, 0.1);
}

.activity-fill {
    width: 68%;
    height: 100%;
    background: var(--green-dark);
    box-shadow: 0 0 8px var(--green);
    animation: activity 5s ease-in-out infinite alternate;
}

.info-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-style: italic;
}

/* QUICK ACCESS */

.quick-access {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 12px;
}

.quick-access button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid rgba(101, 255, 121, 0.07);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.quick-access button:last-child {
    border-bottom: 0;
}

.quick-access button span {
    color: var(--green-dark);
    font-size: 11px;
}

.quick-access button:hover,
.quick-access button:focus-visible {
    padding-left: 14px;
    outline: none;
    background: rgba(101, 255, 121, 0.06);
    color: var(--green-bright);
    text-shadow: var(--glow);
}

/* FOOTER */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.footer-symbol {
    padding-left: 5px;
    color: var(--green);
}

/* ANIMATIONS */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--green);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px var(--green);
    }
}

@keyframes doctor-glow {
    0%, 100% {
        opacity: 0.92;
        filter: drop-shadow(0 0 2px rgba(101, 255, 121, 0.2));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(101, 255, 121, 0.3));
    }
}

@keyframes activity {
    from {
        width: 32%;
    }

    to {
        width: 86%;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, 560px);
    }

    .topbar {
        min-height: 65px;
    }

    .brand {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .system-status {
        gap: 6px;
        font-size: 9px;
        letter-spacing: 0;
    }

    .hero {
        padding: 42px 0 30px;
    }

    .hero-title {
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .terminal-body {
        min-height: 350px;
        padding: 16px;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer {
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .container {
        width: calc(100% - 22px);
    }

    .system-status {
        font-size: 8px;
    }

    .brand {
        gap: 7px;
        font-size: 14px;
    }

    .prompt {
        font-size: 11px;
    }

    #command {
        font-size: 12px;
    }

    .terminal-hint {
        font-size: 8px;
        letter-spacing: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* FULLSCREEN TERMINAL MODE */

body.terminal-only {
    min-height: 100vh;
    background: #030603;
    color: #a5ffad;
}

.terminal-only .console {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 22px 30px;
}

.terminal-only .console-header,
.terminal-only .console-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #55765a;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.terminal-only .console-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(101, 255, 121, 0.17);
}

.terminal-only .console-slash {
    color: #238b37;
}

.terminal-only .console-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-only .console-content {
    flex: 1;
    width: 100%;
    padding: 28px 0;
    overflow-wrap: anywhere;
}

.terminal-only .console-banner {
    margin: 0 0 25px;
    color: #65ff79;
    font: inherit;
    line-height: 1.2;
    white-space: pre;
    text-shadow: 0 0 10px rgba(101, 255, 121, 0.25);
}

.terminal-only .boot-text p {
    margin: 0 0 5px;
}

.terminal-only .accent {
    color: #a5ffad;
}

.terminal-only .dim {
    color: #355d3b;
}

.terminal-only #terminal-output {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.terminal-only .command-entry {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.terminal-only .command-echo {
    color: #65ff79;
}

.terminal-only .command-result {
    color: #a5d9ab;
    white-space: pre-wrap;
    line-height: 1.7;
}

.terminal-only .input-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.terminal-only .prompt {
    flex-shrink: 0;
    color: #65ff79;
}

.terminal-only #command {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #a5ffad;
    font: inherit;
    caret-color: #65ff79;
}

.terminal-only .console-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(101, 255, 121, 0.17);
}

@media (max-width: 600px) {
    .terminal-only .console {
        padding: 16px;
    }

    .terminal-only .console-banner {
        font-size: clamp(8px, 2.2vw, 13px);
    }

    .terminal-only .console-header,
    .terminal-only .console-footer {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .terminal-only .console-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .terminal-only .input-line {
        flex-wrap: wrap;
        gap: 6px;
    }
}
