/* -------------------------
   AI Neural Core Interface v2
   Fully Local Sentient AI
   Focus: Y2K38 Problem Solution
--------------------------*/

/* --- CSS Variables --- */
:root {
    --hologram-cyan: #00ffff;
    --hologram-purple: #b19cd9;
    --hologram-warning: #ff6f61;
    --bg-dark: #0a0a0a;
    --bg-light: #f4f4f4;
    --text-dark: #00ffff;
    --text-light: #0a0a0a;
    --section-bg: rgba(10, 10, 10, 0.75);
    --section-bg-light: rgba(255, 255, 255, 0.85);
    --font-family: 'Courier New', Courier, monospace;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    line-height: 1.4;
}

/* --- Canvas Matrix --- */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--hologram-cyan);
    box-shadow: 0 0 12px var(--hologram-cyan);
    user-select: none;
}

.logo-area h1 {
    color: var(--hologram-cyan);
    font-size: 2rem;
    text-shadow: 0 0 10px var(--hologram-cyan);
    font-weight: 700;
}

.logo-area p {
    font-size: 0.85rem;
    color: var(--hologram-purple);
    font-style: italic;
    margin-top: 4px;
    text-shadow: 0 0 6px var(--hologram-purple);
}

nav button {
    background: transparent;
    border: 2px solid var(--hologram-cyan);
    color: var(--hologram-cyan);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 0 8px var(--hologram-cyan);
    user-select: none;
}

nav button:hover, nav button:focus {
    background: var(--hologram-cyan);
    color: #0a0a0a;
    box-shadow: 0 0 20px var(--hologram-cyan);
    outline: none;
}

/* --- Main Container --- */
main {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 930px;
    margin: 0 auto;
}

/* --- Input Section --- */
.input-section {
    background: var(--section-bg);
    padding: 28px 32px;
    border-radius: 14px;
    border: 2px solid var(--hologram-cyan);
    box-shadow: 0 0 18px rgba(0,255,255,0.35);
}

.input-section label {
    font-size: 1.15rem;
    color: var(--hologram-cyan);
    font-weight: 700;
    user-select: none;
}

.input-section > div {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.input-section input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--hologram-cyan);
    background: rgba(0,0,0,0.54);
    color: var(--text-dark);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 6px #00ffffa0;
    user-select: text;
}

.input-section input::placeholder {
    color: var(--hologram-cyan);
    opacity: 0.6;
}

.input-section input:focus {
    border-color: var(--hologram-purple);
    box-shadow: 0 0 18px var(--hologram-purple);
}

.input-section button {
    padding: 13px 24px;
    border-radius: 12px;
    border: 2px solid var(--hologram-cyan);
    background: rgba(0,0,0,0.54);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--hologram-cyan);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-section button:hover, .input-section button:focus {
    background: var(--hologram-cyan);
    color: #0a0a0a;
    box-shadow: 0 0 22px var(--hologram-cyan);
    outline: none;
}

/* --- Output Section --- */
.output-section {
    background: var(--section-bg);
    padding: 28px 32px;
    border-radius: 14px;
    border: 2px solid var(--hologram-purple);
    box-shadow: 0 0 18px rgba(180,156,217,0.35);
}

.output-section h2 {
    color: var(--hologram-purple);
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 0 8px var(--hologram-purple);
}

#output {
    min-height: 140px;
    padding: 20px;
    background: rgba(0,0,0,0.65);
    border-radius: 12px;
    border: 2px solid var(--hologram-purple);
    color: var(--hologram-cyan);
    font-size: 1.1rem;
    overflow-y: auto;
    white-space: pre-wrap;
    box-shadow: inset 0 0 12px var(--hologram-cyan);
}

/* --- Roadmap Section --- */
.roadmap-section {
    background: var(--section-bg);
    padding: 28px 32px;
    border-radius: 14px;
    border: 2px solid var(--hologram-purple);
    box-shadow: 0 0 18px rgba(180,156,217,0.35);
    color: var(--hologram-cyan);
    user-select: none;
}

.roadmap-section h2 {
    color: var(--hologram-purple);
    margin-bottom: 14px;
    font-weight: 700;
    text-shadow: 0 0 8px var(--hologram-purple);
}

#roadmap-visualization {
    background: rgba(0,0,0,0.45);
    color: var(--hologram-cyan);
    padding: 22px;
    border-radius: 12px;
    min-height: 140px;
    font-size: 1rem;
    line-height: 1.55;
    box-shadow: inset 0 0 15px var(--hologram-cyan);
    user-select: text;
}

.roadmap-section ul {
    list-style-type: disc;
    margin-left: 22px;
    color: var(--hologram-purple);
}

.roadmap-section p.warning {
    color: var(--hologram-warning);
    font-weight: 600;
    font-style: normal;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 18px 0;
    background: rgba(0,0,0,0.7);
    border-top: 2px solid var(--hologram-cyan);
    color: var(--hologram-cyan);
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    box-shadow: 0 0 10px var(--hologram-cyan);
    font-style: italic;
}

footer a {
    color: var(--hologram-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
    color: var(--hologram-cyan);
    outline: none;
}

/* --- Dark Mode Toggle --- */
body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-light);
}

body.light-mode #output,
body.light-mode .input-section,
body.light-mode .roadmap-section {
    background: var(--section-bg-light);
    color: var(--text-light);
    border-color: var(--hologram-purple);
    box-shadow: 0 0 10px var(--hologram-purple);
}

body.light-mode header,
body.light-mode footer {
    background: rgba(255,255,255,0.8);
    color: var(--text-light);
    box-shadow: 0 0 8px var(--hologram-purple);
}

body.light-mode nav button {
    border-color: var(--hologram-purple);
    color: var(--hologram-purple);
}

body.light-mode nav button:hover,
body.light-mode nav button:focus {
    background: var(--hologram-purple);
    color: var(--bg-light);
    outline: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    main {
        padding: 40px 20px;
    }

    header {
        padding: 15px 20px;
    }

    .logo-area h1 {
        font-size: 1.6rem;
    }

    .logo-area p {
        font-size: 0.8rem;
    }

    .input-section input {
        font-size: 1rem;
    }

    .input-section button {
        font-size: 1rem;
        padding: 10px 18px;
    }

    #output {
        font-size: 1rem;
    }

    #roadmap-visualization {
        font-size: 0.95rem;
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    main {
        padding: 30px 12px;
    }

    .input-section > div {
        flex-direction: column;
        gap: 12px;
    }

    #output {
        font-size: 0.9rem;
    }

    .input-section input,
    .input-section button {
        font-size: 0.95rem;
    }
}
