/* ===== lovebot.dev - Sentient Matchmaking Terminal ===== */

:root {
    --night-honey: #1E1A16;
    --dark-amber: #2A2420;
    --burnt-sienna: #6A5A48;
    --dusty-honey: #8A7A60;
    --warm-parchment: #B0A090;
    --honeyed-gold: #C8A878;
    --amber-light: #D8C098;
    --lamp-gold: #E0C890;
    --slate-whisper: #6A7080;
    --cream-peak: #E8E0D0;
}

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

body {
    background: var(--night-honey);
    color: var(--warm-parchment);
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    line-height: 1.85;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark-amber);
    z-index: 10;
    transform: translateX(-280px);
    transition: transform 400ms ease-out;
}

#sidebar.visible {
    transform: translateX(0);
}

.sidebar-inner {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Bot Heart */
#bot-heart {
    width: 24px;
    height: 24px;
    position: relative;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: transform 300ms ease;
}

#bot-heart::before,
#bot-heart::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 22px;
    background: var(--honeyed-gold);
    border-radius: 14px 14px 0 0;
}

#bot-heart::before {
    left: 12px;
    top: 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

#bot-heart::after {
    left: 0;
    top: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

#bot-heart.pulse {
    animation: heartPulse 600ms ease;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1.0); }
    50% { transform: scale(1.08); }
}

/* Sidebar Nav */
#sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: auto;
}

.nav-link {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dusty-honey);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-left: 2px solid transparent;
    transition: color 150ms ease, border-color 200ms ease;
    display: block;
}

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

.nav-link.active {
    color: var(--honeyed-gold);
    border-left-color: var(--honeyed-gold);
}

/* Status */
.sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--honeyed-gold);
    animation: statusPulse 3s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(200, 168, 120, 0.3);
}

@keyframes statusPulse {
    0%, 100% { background-color: var(--honeyed-gold); opacity: 1; }
    50% { background-color: var(--dusty-honey); opacity: 0.6; }
}

.status-label {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dusty-honey);
}

/* Terminal Input */
#terminal-input {
    background: var(--night-honey);
    border: 1px solid var(--burnt-sienna);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: text;
    transition: border-color 200ms ease;
}

#terminal-input.focused {
    border-color: var(--honeyed-gold);
}

.terminal-prompt {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--dusty-honey);
}

.terminal-cursor {
    width: 8px;
    height: 14px;
    background: var(--honeyed-gold);
    animation: cursorBlink 600ms step-end infinite;
}

#terminal-input.focused .terminal-cursor {
    animation-duration: 400ms;
}

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

/* ===== Gutter ===== */
#gutter {
    position: fixed;
    top: 0;
    left: 280px;
    width: 1px;
    height: 100vh;
    background: rgba(106, 90, 72, 0.3);
    z-index: 5;
    opacity: 0;
    transition: opacity 400ms ease;
}

#gutter.visible {
    opacity: 1;
}

#gutter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1px;
    width: 60px;
    height: 100%;
    background: radial-gradient(ellipse at left center, rgba(200, 168, 120, 0.05), transparent 80%);
    pointer-events: none;
}

/* ===== Content Area ===== */
#content-area {
    margin-left: 280px;
    padding: 4rem 3rem 4rem 4rem;
    min-height: 100vh;
    position: relative;
    flex: 1;
}

.heart-watermark {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    opacity: 0.03;
}

.heart-watermark::before,
.heart-watermark::after {
    content: '';
    position: absolute;
    width: 46px;
    height: 73px;
    background: var(--honeyed-gold);
    border-radius: 46px 46px 0 0;
}

.heart-watermark::before {
    left: 40px;
    top: 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-watermark::after {
    left: 0;
    top: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* ===== Content Sections ===== */
.content-section {
    margin-bottom: 48px;
}

/* ===== Content Panels ===== */
.content-panel {
    background: var(--dark-amber);
    border-radius: 8px;
    border-left: 3px solid var(--honeyed-gold);
    padding: 2rem 2.5rem;
    max-width: 70%;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    box-shadow: 0 0 12px rgba(200, 168, 120, 0.05);
}

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

.content-panel:hover {
    border-left-width: 3px;
}

.content-panel::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 3px;
    height: 30%;
    background: var(--honeyed-gold);
    border-radius: 4px 0 0 0;
    transition: height 300ms ease;
}

.content-panel:hover::before {
    height: 100%;
}

/* ===== File Header ===== */
.file-header {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--honeyed-gold);
    margin-bottom: 1.5rem;
}

.file-meta {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--dusty-honey);
    letter-spacing: 0.08em;
}

/* ===== Body Text ===== */
.content-panel p {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: var(--warm-parchment);
}

/* ===== Circuit Traces ===== */
.circuit-trace {
    position: relative;
    height: 48px;
    margin-left: 40px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.circuit-trace.visible {
    opacity: 1;
}

.trace-h {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: rgba(106, 90, 72, 0.08);
}

.trace-corner {
    position: absolute;
    top: 0;
    left: 60px;
    width: 1px;
    height: 24px;
    background: rgba(106, 90, 72, 0.08);
}

.trace-v {
    position: absolute;
    top: 24px;
    left: 60px;
    width: 40px;
    height: 1px;
    background: rgba(106, 90, 72, 0.08);
}

.trace-dot {
    position: absolute;
    top: 22px;
    left: 100px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(106, 90, 72, 0.08);
}

/* ===== Data Stream ===== */
#data-stream {
    margin-top: 80px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.stream-text {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: 0.6rem;
    color: var(--honeyed-gold);
    opacity: 0.03;
    white-space: nowrap;
    animation: streamScroll 120s linear infinite;
}

@keyframes streamScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    #sidebar {
        width: 220px;
    }

    #content-area {
        margin-left: 220px;
        padding: 3rem 1.5rem 3rem 2rem;
    }

    #gutter {
        left: 220px;
    }

    .content-panel {
        max-width: 95%;
    }
}

@media (max-width: 600px) {
    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
        transform: none;
    }

    #sidebar.visible {
        transform: none;
    }

    #content-area {
        margin-left: 0;
        padding: 2rem 1rem;
    }

    #gutter {
        display: none;
    }

    .content-panel {
        max-width: 100%;
    }
}
