/**
 * NeuralCore5 Platform Exploration - Stylesheet
 * Dark theme with simple navigation
 */

/* ========================================
   VARIABLES & BASE STYLES
======================================== */
:root {
    --sidebar-width: 300px;
    --primary-bg: #1a1d29;
    --secondary-bg: #222533;
    --accent-bg: #2a2d3a;
    --border-color: #3a3d4a;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #60a5fa;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --transition-speed: 0.25s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   SIDEBAR NAVIGATION
======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #4a4d5a;
}

/* Sidebar Brand */
.sidebar-brand {
    padding: 1.5rem 1rem;
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-brand h4 {
    color: var(--accent-purple);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.sidebar-brand i {
    margin-right: 0.5rem;
}

/* Sidebar Navigation List */
.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.sidebar-nav li {
    display: block;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a:hover {
    background: var(--accent-bg);
    color: var(--text-primary);
    border-left-color: var(--accent-purple);
}

.sidebar-nav a.active {
    background: var(--accent-bg);
    color: var(--accent-purple);
    border-left-color: var(--accent-purple);
    font-weight: 600;
}

/* ========================================
   MAIN CONTENT AREA
======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    max-width: 1400px;
    min-height: 100vh;
}

/* Header */
.api-header {
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.api-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.api-header .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    margin-right: 0.75rem;
    color: var(--accent-purple);
}

.section-content {
    padding: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 250px;
    }

    .api-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-speed) ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-light {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}
