/* --- VARIABLES --- */
:root {
    /* Colors */
    --bg: #ffffff;
    --fg: #111111;
    --surface: #f4f4f5;
    --border: #e4e4e7;
    --accent: #0047FF;
    
    /* GLASS Code Block Variables */
    /* Semi-transparent white for glass effect */
    --code-bg: rgba(255, 255, 255, 0.6);
    --code-border: rgba(0, 0, 0, 0.08);
    --code-text: #1F2937;
    
    --sidebar-width: 280px;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
    --bg: #09090b;
    --fg: #ededed;
    --surface: #18181b;
    --border: #27272a;
    --accent: #3b82f6;
    
    /* Dark Mode Glass */
    --code-bg: rgba(20, 20, 20, 0.6);
    --code-border: rgba(255, 255, 255, 0.1);
    --code-text: #e5e5e5;
}

/* --- RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    /* subtle grid pattern to make glass effect visible */
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
}

a { text-decoration: none; color: var(--fg); transition: 0.2s; }
a:hover { color: var(--accent); }

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: var(--bg); /* Sidebar stays solid */
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
}

.brand {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-group { margin-bottom: 2.5rem; }
.nav-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.5;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.nav-links { list-style: none; }
.nav-links li { margin-bottom: 0.5rem; }
.nav-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--fg);
    opacity: 0.7;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -12px;
}
.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--accent);
    border-left-color: var(--accent);
}

.theme-toggle {
    margin-top: auto;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- MAIN CONTENT --- */
.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

main {
    width: 100%;
    max-width: 850px;
    padding: 5rem 4rem 8rem 4rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 700; }
h2 { font-size: 1.75rem; margin: 4rem 0 1.5rem 0; letter-spacing: -0.02em; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.25rem; margin: 2rem 0 1rem 0; font-weight: 600; }
p { margin-bottom: 1.5rem; opacity: 0.9; }

/* --- NEW: IMAGE STEP WRAPPER (For your fdisk/mkfs screenshots) --- */
.step-image-container {
    margin: 2.5rem 0;
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
}

.step-comment {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fg);
    opacity: 0.8;
    margin-bottom: 0.8rem;
    display: block;
    font-weight: 600;
}

.step-img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: block;
    transition: transform 0.2s;
}
.step-img:hover { transform: scale(1.01); }


/* --- NEW: GLASSMORPHISM COMMAND TEXT (For the remaining text commands) --- */
.command-text {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    
    /* Glass Effect */
    background-color: var(--code-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--code-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--code-text);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* --- TABLES & FIGURES --- */
table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9rem; border: 1px solid var(--border); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

figure { margin: 3rem 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
img { width: 100%; display: block; cursor: zoom-in; }
figcaption { padding: 0.8rem; font-size: 0.8rem; color: var(--fg); opacity: 0.6; font-family: var(--font-mono); text-align: center; background: var(--surface); border-top: 1px solid var(--border); }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-right: 10px; font-family: var(--font-mono); }
.status-success { background: #dcfce7; color: #166534; }
.status-neutral { background: #f3f4f6; color: #374151; }
[data-theme="dark"] .status-success { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .status-neutral { background: #374151; color: #e5e7eb; }

.personal-note { background: var(--surface); border-left: 3px solid var(--accent); padding: 1.5rem; font-size: 0.95rem; margin: 2rem 0; font-style: italic; border-radius: 0 4px 4px 0; }

@media (max-width: 1000px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; }
    .content-wrapper { display: block; }
    main { padding: 3rem 2rem; }
}
/* --- BENCHMARK GRID (Side-by-Side) --- */
.benchmark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Stack them on mobile */
@media (max-width: 768px) {
    .benchmark-grid {
        grid-template-columns: 1fr;
    }
}