/* ==========================================================================
   ILTECHS CORE DESIGN SYSTEM VARIABLES
   ========================================================================== */

@import url('https://googleapis.com');

:root {
    --bg-main: #0f0f12;         /* Deep matte charcoal backdrop canvas */
    --panel-bg: #1e1e24;        /* Card profiles and side rail background */
    --panel-border: #2d2d37;    /* Subtle separation structural rules */
    --text-primary: #f8f8f2;    /* High contrast text */
    --text-secondary: #9494a1;  /* Faded informational subheadings */
    --brand-blue: #1793d1;     /* Distinct Arch Linux blue identity color */
    --brand-green: #50fa7b;    /* Accent highlights for badge blocks */
    --terminal-bg: #050507;     /* Pure inner code window backing */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR NAVIGATION DECK
   ========================================================================== */
.sidebar {
    width: 280px;
    background-color: var(--panel-bg);
    border-right: 1px solid var(--panel-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.brand-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--panel-border);
}

.brand-container {
    display: flex;
    align-items: center;  /* Centers the logo vertically with the text block */
    gap: 14px;            /* Precise spacing between logo and text */
}

.brand-logo {
    width: 42px;          /* Optimized visual scale for sidebar headers */
    height: 42px;
    object-fit: contain;  /* Prevents the vector logo from distorting */
    filter: drop-shadow(0 2px 8px rgba(23, 147, 209, 0.3)); /* Arch Blue branding glow */
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

/* Adjust the original title margins slightly for perfect flex alignment */
.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    line-height: 1;      /* Flushes line height to match top of logo */
}

.brand-title span {
    color: var(--brand-blue);
}

.brand-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.brand-logo {
    width: 64px;
    height: 64px;
}

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

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-item a:hover, .nav-item.active a {
    background-color: rgba(23, 147, 209, 0.1);
    color: var(--brand-blue);
    padding-left: 20px;
}

.fa {
    font-size: 15px;
    margin-right: 5px;
}

/* ==========================================================================
   LIGHT MODE TARGET COLORS (DYNAMIC HIGHLIGHT SWITCH)
   ========================================================================== */

body.light-theme {
    --bg-main: #f4f5f8;
    --panel-bg: #ffffff;
    --panel-border: #dcdde1;
    --text-primary: #1c1c1f;
    --text-secondary: #65656e;
    --terminal-bg: #1e1e24; /* Keeps code box dark contrast for readability */
}

/* THEME TOGGLE WIDGET ELEMENT */
.theme-toggle-container {
    margin-top: auto; /* Pushes the widget cleanly to the bottom of the sidebar */
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: center;
}

.theme-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background-color: rgba(23, 147, 209, 0.1);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* ==========================================================================
   MAIN DOCUMENTATION DASHBOARD LAYER
   ========================================================================== */

.main-content {
    margin-left: 280px;
    padding: 40px 50px;
    width: calc(100% - 280px);
}

.hero-banner {
    background: linear-gradient(135deg, #1e1e24 0%, #131317 100%);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(80, 250, 123, 0.1);
    color: var(--brand-green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {/* ==========================================================================
   GLOBAL FOOTER STAMP
   ========================================================================== */
.site-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: monospace;
}/* ==========================================================================
   GLOBAL FOOTER STAMP
   ========================================================================== */
.site-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: monospace;
}

.site-footer a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover {
    text-decoration: underline;
}

.site-footer a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover {
    text-decoration: underline;
}
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 700px;
    line-height: 1.6;
}

/* ==========================================================================
   SERIES CARD GRID SYSTEM
   ========================================================================== */
.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.series-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(23, 147, 209, 0.4);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--brand-blue);
    font-size: 14;
}

/* ==========================================================================
   DOCUMENTATION BLOG POST WRAPPER
   ========================================================================== */
.doc-article {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.doc-meta {
    font-size: 13px;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.doc-h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.doc-p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.doc-h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 35px 0 15px 0;
    color: var(--text-primary);
    border-left: 3px solid var(--brand-blue);
    padding-left: 12px;
}

/* PREMIUM TERMINAL CONTAINER GRID */
.iltechs-code-wrapper {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.iltechs-code-header {
    background-color: #16161a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
}

.iltechs-code-dots {
    display: flex;
    gap: 6px;
}

.iltechs-code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.iltechs-code-title {
    color: #6272a4;
    font-family: monospace;
    font-size: 12px;
    margin-left: 20px;
}

.iltechs-code-block {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    background-color: var(--terminal-bg) !important;
    color: var(--brand-green) !important; /* Neon text output */
    padding: 18px !important;
    margin: 0 !important;
    display: block !important;
    overflow-x: auto !important; /* CRUCIAL: Enables horizontal sliding swipe on mobile grids */
    white-space: pre !important;
    font-size: 14px;
    line-height: 1.6;
}

.code-comment {
    color: #6272a4; /* Dracula comment color */
    font-style: italic;
}

/* ==========================================================================
   SUB-BLOG FEED CONTAINER & ARCHITECTURE
   ========================================================================== */
.category-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--panel-border);
}

.category-badge-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.distro-icon-large {
    font-size: 36px;
}

.category-h1 {
    font-size: 32px;
    font-weight: 800;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 8px;
    max-width: 750px;
}

/* SUB-BLOG ITEM FEED CARDS */
.sub-blog-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-blog-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.sub-blog-card:hover {
    transform: translateX(4px);
    border-color: rgba(23, 147, 209, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sub-blog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sub-blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-blog-card:hover .sub-blog-title {
    color: var(--brand-blue);
}

.sub-blog-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sub-blog-summary {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sub-blog-tags {
    display: flex;
    gap: 8px;
}

.tag-badge {
    background-color: var(--bg-main);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==========================================================================
   GLOBAL FOOTER STAMP
   ========================================================================== */

.site-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
}

.site-footer a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   DYNAMIC MOBILE MEDIA QUERIES (FLAWLESS RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--panel-border);
        padding: 20px;
    }
    .brand-section {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px;
    }
}
