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

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

:root {
    --void-bg: #030712;
    --void-card: #09090b;
    /* Zinc-950 */
    --void-border: #1f2937;
    /* Gray-800 */
    --void-surface: #111827;
    /* Gray-900 */

    --primary: #7c3aed;
    /* Violet-600 */
    --primary-glow: rgba(124, 58, 237, 0.4);
    --secondary: #14b8a6;
    /* Teal-500 */
    --secondary-glow: rgba(20, 184, 166, 0.4);
    --accent: #f59e0b;
    /* Amber-500 */

    --text-main: #f3f4f6;
    /* Gray-100 */
    --text-muted: #9ca3af;
    /* Gray-400 */
    --text-dim: #6b7280;
    /* Gray-500 */

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --glass: rgba(9, 9, 11, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--void-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* UTILITIES */
.font-mono {
    font-family: var(--font-mono);
}

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

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

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

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LAYOUT */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }
}

/* SIDEBAR */
.sidebar {
    background: var(--void-card);
    border-right: 1px solid var(--void-border);
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--void-bg);
    border-radius: 4px;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.nav-item.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-color: rgba(124, 58, 237, 0.2);
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* MAIN CONTENT */
.main-viewport {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .main-viewport {
        padding: 20px;
    }
}

/* HERO (Dashboard) */
.dashboard-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--void-border);
    padding-bottom: 24px;
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 12px;
}

.dashboard-meta {
    display: flex;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary-glow);
}

/* CARDS (Glassmorphism) */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--void-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.glass-panel:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

/* DASHBOARD GRID */
.grid-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin: 12px 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* MATRIX (Consensus) */
.matrix-container {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.matrix-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px;
    align-items: center;
    padding: 16px;
    background: var(--void-surface);
    border-radius: 8px;
    border: 1px solid var(--void-border);
}

.matrix-id {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 12px;
}

.matrix-content h4 {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.matrix-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.consensus-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: center;
    background: rgba(20, 184, 166, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

/* GUIDE MODULES */
.guide-module {
    margin-bottom: 24px;
    animation: fadeIn 0.4s ease;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--void-border);
}

.guide-ai-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid currentColor;
}

.tag-claude {
    color: #cc784c;
    background: rgba(204, 120, 76, 0.1);
}

.tag-gpt {
    color: #10a37f;
    background: rgba(16, 163, 127, 0.1);
}

.tag-gemini {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
}

.tag-grok {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
}

/* SKILL TABLES (Tech style) */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: var(--font-mono);
}

.tech-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--void-border);
    font-weight: 500;
}

.tech-table td {
    padding: 12px 16px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tech-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

.skill-highlight {
    color: var(--secondary);
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--void-border);
    display: none;
    justify-content: space-around;
    padding: 12px;
    z-index: 100;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--void-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--void-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}