/* Retro CMD Theme - Orange/Blue/White Edition */
:root {
    --bg-color: #000000;
    /* Deep Black */
    --win-bg: #111111;
    /* Slightly lighter black for window distinction */
    --fg-color: #ffffff;
    /* Pure White */

    /* Palette */
    --orange: #ff6600;
    /* Vibrant Orange */
    --blue: #007bff;
    /* Strong Blue */
    --cyan: #00ffff;
    /* Retro Cyan (keeping for accents) */

    /* Borders */
    --border-light: #ffffff;
    /* High contrast white borders */
    --border-dark: #333333;

    --font-main: 'Space Mono', monospace;
    --font-cmd: 'VT323', monospace;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--fg-color);
    margin: 0;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
    /* Prevent scrolling body, handle inside containers */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
}

/* UI Elements */
.retro-border {
    background: var(--win-bg);
    border-top: 2px solid var(--border-light);
    border-left: 2px solid var(--border-light);
    border-right: 2px solid var(--border-dark);
    border-bottom: 2px solid var(--border-dark);
    box-shadow: 4px 4px 0px 0px var(--orange);
    /* Orange Shadow */
}

.title-bar {
    background: var(--blue);
    color: var(--fg-color);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    font-family: var(--font-cmd);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-bar-btns {
    display: flex;
    gap: 4px;
}

.title-btn {
    width: 16px;
    height: 16px;
    background: var(--fg-color);
    color: var(--bg-color);
    border: 1px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.cmd-content {
    background: #000000;
    color: var(--fg-color);
    font-family: var(--font-cmd);
    padding: 15px;
    border: 2px inset var(--border-light);
    font-size: 1.1rem;
    overflow-y: auto;
}

/* Screens */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    background-color: var(--bg-color);
}

#intro-content {
    text-align: center;
}

#main-interface {
    display: none;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Responsive Grid */
@media (max-width: 768px) {
    #main-interface {
        grid-template-columns: 1fr;
        overflow-y: auto;
        display: none;
    }
}

.btn-start {
    margin-top: 20px;
    background: var(--orange);
    /* Key Action Button */
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--blue);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-start:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--blue);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--orange);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* Card Styles */
.exp-card {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle white BG */
    padding: 20px;
    border: 2px solid var(--border-light);
    box-shadow: 4px 4px 0 var(--blue);
    transition: transform 0.2s;
}

.exp-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--orange);
    border-color: var(--orange);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.exp-title {
    color: var(--orange);
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.exp-company {
    color: var(--blue);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--orange);
    padding-left: 10px;
}

.tag {
    background: var(--blue);
    color: var(--fg-color);
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
}

.btn-view {
    background: var(--orange);
    color: #000;
    /* Solid Black text for readability on Orange */
    border: 3px solid var(--blue);
    /* Goku's Blue sash/undershirt */
    padding: 10px 20px;
    font-family: var(--font-cmd);
    font-weight: 800;
    /* Extra Bold */
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
    /* Solid shadow */
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-view:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--orange);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-window {
    width: 90%;
    max-width: 800px;
    height: 80%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--orange);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.modal-body {
    flex-grow: 1;
    background: #000;
    color: var(--fg-color);
    padding: 20px;
    font-family: var(--font-cmd);
    font-size: 1.2rem;
    overflow-y: auto;
}

/* Utility */
.text-cyan {
    color: var(--blue);
}

/* Remap cyan class to blue for semantic consistency without changing HTML */
.text-green {
    color: var(--orange);
}

/* Remapped for "OK" status */
.text-magenta {
    color: var(--orange);
}

.text-yellow {
    color: var(--orange);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--win-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border: 1px solid var(--win-bg);
}