/* ==========================================
   FrostLabs - STABLE v2 Stylesheet
   ========================================== */

/* ==========================================
   1. ROOT VARIABLES
   ========================================== */
:root {
    --frost-blue-dark: #00065c;
    --frost-blue-mid: #0033aa;
    --frost-cyan-bright: #00e1ff;
    --frost-cyan-muted: #6ddff2; 
    --text-primary: #e0e6f0; 
    --text-secondary: rgba(224, 230, 240, 0.7);
    --text-muted: rgba(224, 230, 240, 0.5);
    --bg-card: rgba(0, 0, 0, 0.5);
    --bg-card-light: rgba(0, 0, 0, 0.3);
    --bg-card-hover: rgba(0, 0, 0, 0.6);
    --border-color: rgba(0, 225, 255, 0.3);
    --border-bright: rgba(0, 225, 255, 0.6);
    --shadow-glow: rgba(0, 225, 255, 0.4);
    --sidebar-width: 250px;
    --content-max-width: 900px;
}

/* ==========================================
   2. BASE & RESET STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(180deg, var(--frost-blue-dark) 0%, var(--frost-cyan-bright) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   3. TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--frost-cyan-muted);
}

a {
    color: var(--frost-cyan-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--frost-cyan-bright);
    text-shadow: 0 0 10px var(--shadow-glow);
}

/* ... other base styles like p, ul, strong, etc. ... */

/* ==========================================
   4. LAYOUT & STRUCTURE
   ========================================== */
.site-wrapper {
    display: flex;
}

.site-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
}
.site-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
}

/* NEW: Universal Content Wrapper */
.main-content-area {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px var(--shadow-glow);
    animation: fadeIn 0.6s ease-out;
}

/* ... Sidebar and Footer styles ... */

/* ==========================================
   5. PAGE-SPECIFIC LAYOUTS
   ========================================== */

/* --- Docs Pages --- */
.docs-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.docs-layout .main-content-area {
    flex: 1;
    min-width: 0;
}

.docs-toc {
    width: 250px;
    position: sticky;
    top: 2rem;
}

/* --- Homepage --- */
.homepage-layout {
    text-align: center;
}


/* ==========================================
   6. ANIMATIONS & RESPONSIVE
   ========================================== */
/* ... Keyframes and Media Queries ... */