/* WANZA portfolio — minimal Mac Terminal aesthetic */
:root {
    --bg: #1e1e1e;
    --bg-panel: #252525;
    --bg-input: #2d2d2d;
    --border: #3a3a3a;
    --text: #d4d4d4;
    --text-dim: #8a8a8a;
    --accent: #5f9ea0;   /* muted teal, terminal-friendly */
    --accent-dim: #4a7f80;
    --green: #7fc97f;
    --red: #e06c75;
    --yellow: #e5c07b;
    --blue: #61afef;
    --font: 'Open Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #111;
}

body {
    font-family: var(--font);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* The terminal window */
#terminal {
    width: 100%;
    max-width: 1100px;
    height: min(88vh, 780px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
}

/* Title bar */
#titlebar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    user-select: none;
    flex: 0 0 auto;
}
.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.close { background: #ff5f57; }
.dot.minimize { background: #febc2e; }
.dot.maximize { background: #28c840; }
.title { font-size: 12px; color: var(--text-dim); letter-spacing: .3px; margin-left: 6px; }

/* Output/prompt area */
#output {
    width: 100%;
    flex: 0 0 auto;
    padding: 14px 16px 6px;
    font-size: 13.5px;
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
    min-height: 76px;
}
#output .line { white-space: pre-wrap; word-break: break-word; }
#output .muted { color: var(--text-dim); }
#output .cmd { color: var(--blue); }
.prompt { color: var(--green); }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Layout: sidebar + content */
#sidebar {
    width: 230px;
    flex: 0 0 230px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 14px 10px;
    overflow-y: auto;
    height: auto;
}
.tree-root {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 4px 8px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.tree { font-size: 13px; }
.tree ul { list-style: none; margin: 0; padding-left: 14px; }
.tree li { margin: 2px 0; }
.tree .dir { color: var(--blue); cursor: pointer; }
.tree .dir:hover { text-decoration: underline; }
.tree .file { color: var(--text-dim); cursor: pointer; }
.tree .file:hover { color: var(--text); }
.tree .dir.active { color: var(--green); font-weight: 600; }
.tree .file.active { color: var(--yellow); }
.tree .collapse { color: var(--text-dim); user-select: none; display: inline-block; width: 16px; }

/* Main content */
#content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 26px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
}
#content h1 { font-size: 20px; margin: 0 0 4px; font-weight: 600; }
#content h2 { font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; margin: 26px 0 8px; font-weight: 600; }
#content h3 { font-size: 13.5px; margin: 18px 0 4px; color: var(--text); font-weight: 600; }
#content p { margin: 6px 0; }
#content .dim { color: var(--text-dim); }
#content .accent { color: var(--accent); }
#content ul { margin: 4px 0 8px; padding-left: 20px; }
#content li { margin: 3px 0; }
#content a { color: var(--blue); text-decoration: none; }
#content a:hover { text-decoration: underline; }

.pathbar { font-family: var(--font); font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; word-break: break-all; }
.pathbar .sep { color: var(--text-dim); }
.pathbar .cwd { color: var(--green); }

/* Listing view (looks like `ls`) */
.ls-line { display: flex; gap: 12px; padding: 2px 0; }
.ls-line .name { min-width: 220px; }
.ls-line .desc { color: var(--text-dim); }

/* Project / role cards */
.card {
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: 4px;
    background: var(--bg-panel);
}
.card .role { color: var(--accent); font-weight: 600; }
.card .date { color: var(--text-dim); font-size: 12.5px; }

/* Resume / CV details */
.resume-block { margin: 6px 0; }
.resume-company { font-weight: 600; }
.resume-title { color: var(--accent); }

/* Mobile quick nav */
#quicknav {
    display: none;
    width: 100%;
    flex: 0 0 auto;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    justify-content: center;
    gap: 18px;
    padding: 10px;
}
#quicknav a { color: var(--blue); text-decoration: none; font-size: 13px; }
#quicknav a:hover { text-decoration: underline; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

/* Responsive */
@media (max-width: 720px) {
    body { padding: 10px; }
    #terminal { height: 94vh; }
    #sidebar { display: none; }
    #content { padding: 16px 14px; }
    #quicknav { display: flex; }
    .ls-line .name { min-width: 160px; }
}
