/* SocialDebug.Org - Terminal Command Line Dev Aesthetic */
/* Palette: #0d1117, #161b22, #3fb950, #d29922, #f85149, #c9d1d9, #8b949e, #30363d */

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --green: #3fb950;
    --yellow: #d29922;
    --red: #f85149;
    --text: #c9d1d9;
    --comment: #8b949e;
    --border: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Status Bar - thin green line at top */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green);
    z-index: 1000;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.4);
}

/* Navigation Chrome */
.nav-chrome {
    position: fixed;
    top: 2px;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 2rem;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.nav-brand {
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--comment);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

.nav-link:hover {
    color: var(--green);
}

/* Terminal Sections */
.terminal-section {
    padding: 4rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* ===================== */
/* Boot / Hero Section   */
/* ===================== */
#boot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
}

.boot-content {
    width: 100%;
    max-width: 700px;
}

.boot-init {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeSlideIn 0.8s ease 0.3s forwards;
}

.boot-init .boot-line {
    display: block;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--comment);
}

.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeSlideIn 0.8s ease 0.8s forwards;
    letter-spacing: -0.03em;
}

.brand-dot {
    color: var(--green);
}

.brand-tld {
    color: var(--comment);
    font-weight: 400;
}

.prompt-line {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeSlideIn 0.6s ease 1.3s forwards;
}

.prompt {
    color: var(--green);
    font-weight: 700;
}

.command {
    color: var(--text);
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 20px;
    background: var(--green);
    animation: blink 1s step-end infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boot status lines */
.boot-status {
    opacity: 0;
    animation: fadeSlideIn 0.6s ease 2.8s forwards;
}

.status-line {
    font-size: 0.82rem;
    line-height: 2;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.status-line.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================== */
/* Scan Section          */
/* ===================== */
#scan {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Terminal Blocks */
.terminal-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.terminal-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-header {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-command {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timestamp {
    color: var(--comment);
    font-size: 0.72rem;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 0;
    letter-spacing: 0.02em;
}

.badge-ok { color: var(--green); }
.badge-warn { color: var(--yellow); }
.badge-fail { color: var(--red); }

.terminal-body {
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
}

.line-row {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 1px 0;
}

.line-row:hover {
    background: rgba(48, 54, 61, 0.3);
    border-radius: 2px;
}

.line-num {
    color: var(--comment);
    opacity: 0.35;
    min-width: 24px;
    text-align: right;
    font-size: 0.72rem;
    user-select: none;
    flex-shrink: 0;
}

.line-text {
    color: var(--text);
    word-break: break-word;
}

.text-green { color: var(--green); font-weight: 700; }
.text-yellow { color: var(--yellow); font-weight: 700; }
.text-red { color: var(--red); font-weight: 700; }
.text-comment { color: var(--comment); }

/* Terminal Summary Bar */
.terminal-summary {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-divider {
    color: var(--border);
}

.summary-stat {
    font-family: 'Fira Code', monospace;
}

/* ===================== */
/* Trace Section         */
/* ===================== */
#trace {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.stack-trace .line-row {
    margin-bottom: 0.3rem;
    line-height: 1.7;
}

.indent-1 { padding-left: 1.5rem; }
.indent-2 { padding-left: 3rem; }
.indent-3 { padding-left: 4.5rem; }
.indent-4 { padding-left: 6rem; }
.indent-5 { padding-left: 7.5rem; }
.indent-6 { padding-left: 9rem; }
.indent-7 { padding-left: 10.5rem; }
.indent-8 { padding-left: 12rem; }

/* ===================== */
/* Exit Section          */
/* ===================== */
#exit-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6rem;
}

.exit-content {
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.exit-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.exit-terminal-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 28px;
}

.exit-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 2;
}

.exit-code {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
}

.exit-prompt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#exit-cursor {
    animation: blink 1s step-end infinite;
    animation-play-state: paused;
}

#exit-cursor.active {
    animation-play-state: running;
}

/* ===================== */
/* Responsive            */
/* ===================== */
@media (max-width: 768px) {
    .terminal-section {
        padding: 3rem 1rem;
    }

    .terminal-block {
        padding: 14px 16px;
    }

    .indent-1,
    .indent-2,
    .indent-3,
    .indent-4,
    .indent-5,
    .indent-6,
    .indent-7,
    .indent-8 {
        padding-left: 1rem;
    }

    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .nav-chrome {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .exit-terminal-block {
        padding: 16px 18px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .line-row {
        gap: 0.5rem;
    }

    .line-num {
        min-width: 16px;
        font-size: 0.65rem;
    }

    .terminal-body {
        font-size: 0.75rem;
    }
}
