/* Personal HQ — Design System
   Dark Luxury Command Center Theme
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Core palette — Deep dark luxury */
    --bg: #080808;
    --bg-layer-1: rgba(13, 13, 13, 0.8);
    --bg-layer-2: rgba(18, 18, 18, 0.9);
    --bg-layer-3: rgba(23, 23, 23, 0.95);
    --bg-elevated: rgba(28, 28, 28, 0.95);

    --fg: #e5e5e5;
    --fg-muted: #a1a1aa;
    --fg-dim: #71717a;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.18);

    /* State colors */
    --state-idle: #22c55e;
    --state-thinking: #eab308;
    --state-processing: #3b82f6;
    --state-awaiting: #a855f7;
    --state-error: #ef4444;

    /* Primary accent */
    --primary: #e5e5e5;
    --primary-bg: #ffffff;
    --primary-fg: #080808;

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Manrope', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --sidebar-width: 72px;
    --sidebar-expanded: 260px;

    /* Transitions */
    --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.5s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: -0.01em;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   ANIMATIONS — Motion System
   ============================================ */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px currentColor); }
    50% { filter: drop-shadow(0 0 20px currentColor); }
}

@keyframes think-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50% { box-shadow: 0 0 30px 10px rgba(234, 179, 8, 0.15); }
}

@keyframes process-flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fade-in 0.5s var(--ease-liquid) both;
}

/* ============================================
   STATUS INDICATORS
   ============================================ */

.status-orb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-orb.idle {
    background: var(--state-idle);
    animation: breathe 3s ease-in-out infinite;
}

.status-orb.thinking {
    background: var(--state-thinking);
    animation: glow-pulse 1.5s ease-in-out infinite;
}

.status-orb.processing {
    background: var(--state-processing);
    animation: glow-pulse 0.8s ease-in-out infinite;
}

.status-orb.awaiting {
    background: var(--state-awaiting);
    animation: breathe 2s ease-in-out infinite;
}

/* ============================================
   SURFACE SYSTEM — Layered Depth
   ============================================ */

.surface-panel {
    background: var(--bg-layer-1);
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.surface-elevated {
    background: var(--bg-layer-2);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid var(--border);
    box-shadow:
        0 4px 24px -4px rgba(0, 0, 0, 0.5),
        0 12px 48px -8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.surface-interactive {
    background: var(--bg-layer-1);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--duration) var(--ease-liquid);
}

.surface-interactive:hover {
    background: var(--bg-layer-2);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-bg);
    color: var(--primary-fg);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s var(--ease-liquid);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--fg-muted);
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-liquid);
}

.btn-ghost:hover {
    color: var(--fg);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--fg-muted);
    transition: all 0.3s var(--ease-liquid);
}

.btn-icon-sm:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.06);
}
