/* LABIIUM Photon Design System - MkDocs Theme
 * Created for PyTestLab Documentation
 */

/* ------------------------------
 * 1. CORE VARIABLES & TOKENS
 * ------------------------------ */
:root {
    /* Core Brand Colors */
    --photon-black: #0b0e11;
    --photon-white: #f5f7fa;
    --lab-violet: #5333ed;
    --lab-aqua: #04e2dc;

    /* Glass Effects */
    --glass-frost-bg: rgba(30, 33, 38, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.25);

    /* Neutral Shades */
    --graphite-30: #1a1d20;
    --graphite-50: #2b2e32;
    --graphite-70: #42454a;

    /* Status Colors */
    --status-success: #00b27c;
    --status-warning: #ffb02e;
    --status-error: #ff5460;

    /* Interaction */
    --ease-curve: cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --font-ui:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-display: "Manrope", "Inter", sans-serif;
    --font-code:
        "IBM Plex Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo,
        monospace;

    /* Spacing & Layout */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Component dimensions */
    --header-height: 80px;
    --sidebar-width: 260px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 32px;
}

/* ------------------------------
 * 2. CORE ELEMENTS
 * ------------------------------ */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--photon-black);
    color: var(--photon-white);
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Background beams effect */
#background-beams {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            ellipse 80% 80% at 20% -10%,
            rgba(83, 51, 237, 0.1),
            transparent
        ),
        radial-gradient(
            ellipse 60% 80% at 80% 110%,
            rgba(4, 226, 220, 0.1),
            transparent
        );
    z-index: -1;
    transition: background 1s ease-out;
}

/* Basic container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ------------------------------
 * 3. TYPOGRAPHY
 * ------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--photon-white);
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem;
    background: linear-gradient(
        135deg,
        var(--photon-white) 0%,
        rgba(255, 255, 255, 0.7) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--lab-violet);
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.35rem;
    color: var(--lab-aqua);
}

h4 {
    font-size: 1.1rem;
}

p,
ul,
ol {
    margin-bottom: 1.5rem;
}

a {
    color: var(--lab-aqua);
    text-decoration: none;
    transition:
        color 0.3s var(--ease-curve),
        text-shadow 0.3s var(--ease-curve);
}

a:hover,
a:focus {
    color: var(--photon-white);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(4, 226, 220, 0.3);
}

hr {
    border: 0;
    height: 1px;
    background: var(--graphite-50);
    margin: 2rem 0;
}

/* ------------------------------
 * 4. LAYOUT STRUCTURE
 * ------------------------------ */
.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: var(--spacing-lg) 0 var(--spacing-xxl);
}

.content-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--spacing-xl);
}

/* Homepage and 404 layout - full width content */
.page-content.full-width {
    grid-column: 1 / -1;
    max-width: none;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
 * 5. HEADER & NAVIGATION
 * ------------------------------ */
.site-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 10000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: all 0.4s var(--ease-curve);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-header.scrolled {
    background: rgba(11, 14, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 0 var(--glass-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.site-logo img {
    height: 42px;
    width: auto;
    display: block;
    max-width: none;
    opacity: 1;
    visibility: visible;
}

.site-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--photon-white);
}

/* Navigation */
.nav-primary {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
}

.nav-item a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-item.active a {
    color: var(--lab-aqua);
}

.nav-item a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--lab-aqua);
    transition: width 0.3s var(--ease-curve);
}

.nav-item.active a::after,
.nav-item a:hover::after {
    width: 100%;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle::after {
    content: "▾";
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-curve);
    padding: var(--spacing-sm);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile nav toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
}

.menu-toggle .line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--photon-white);
    position: absolute;
    left: 0;
    transition: all 0.3s var(--ease-curve);
}

.menu-toggle .line:nth-child(1) {
    top: 0;
}

.menu-toggle .line:nth-child(2) {
    top: 9px;
}

.menu-toggle .line:nth-child(3) {
    top: 18px;
}

.menu-toggle.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-primary {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: linear-gradient(
            135deg,
            rgba(11, 14, 17, 0.98) 0%,
            rgba(30, 33, 38, 0.95) 100%
        ) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: calc(var(--header-height) + 2rem) var(--spacing-lg) 2rem !important;
        margin: 0 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-curve);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-primary.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu-header {
        width: 100%;
        max-width: 420px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 var(--spacing-sm) var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .nav-menu-title {
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--photon-white);
        margin: 0;
    }

    .nav-close-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--glass-border);
        border-radius: var(--border-radius-md);
        color: var(--photon-white);
        cursor: pointer;
        transition: all 0.3s var(--ease-curve);
    }

    .nav-close-button:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: var(--glass-border-hover);
        transform: scale(1.05);
    }

    .nav-close-button svg {
        width: 20px;
        height: 20px;
    }

    .nav-links {
        width: 100%;
        max-width: 420px;
        padding: 0;
        margin: 0;
        list-style: none;
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-item {
        width: 100%;
        position: relative;
    }

    .nav-item a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        min-height: 56px;
        text-align: left;
        border: none;
        color: var(--photon-white);
        text-decoration: none;
        background: var(--glass-frost-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--border-radius-lg);
        transition: all 0.3s var(--ease-curve);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-item a:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--glass-border-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(83, 51, 237, 0.2);
    }

    .nav-item.active a {
        background: linear-gradient(
            135deg,
            rgba(83, 51, 237, 0.2) 0%,
            rgba(4, 226, 220, 0.1) 100%
        );
        border-color: var(--lab-violet);
        color: var(--photon-white);
    }

    .nav-item a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        background: rgba(11, 14, 17, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius-md);
        box-shadow: none;
        width: 100%;
        padding: var(--spacing-sm) 0;
        margin-top: var(--spacing-xs);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        margin: 0;
        padding: 0 var(--spacing-sm);
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.85);
        background: transparent;
        border: none;
        border-radius: var(--border-radius-sm);
        box-shadow: none;
        min-height: 40px;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--photon-white);
        transform: translateX(4px);
    }

    .dropdown-menu a.active {
        background: rgba(83, 51, 237, 0.2);
        color: var(--lab-aqua);
    }

    .dropdown-toggle::after {
        content: "";
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transition: transform 0.3s var(--ease-curve);
    }

    .dropdown.active .dropdown-toggle::after {
        transform: translateY(-50%) rotate(-135deg);
    }
}

@media (max-width: 768px) {
    .nav-primary {
        padding: calc(var(--header-height) + 1.5rem) 1rem 2rem !important;
    }

    .nav-menu-header,
    .nav-links {
        max-width: 100%;
    }

    .nav-menu-title {
        font-size: 1.1rem;
    }

    .nav-close-button {
        width: 36px;
        height: 36px;
    }

    .nav-close-button svg {
        width: 18px;
        height: 18px;
    }

    .nav-item a {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 52px;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .nav-primary {
        padding: calc(var(--header-height) + 1rem) 0.75rem 1.5rem !important;
    }

    .nav-menu-header {
        padding: 0 0 var(--spacing-md);
    }

    .nav-menu-title {
        font-size: 1rem;
    }

    .nav-close-button {
        width: 32px;
        height: 32px;
    }

    .nav-close-button svg {
        width: 16px;
        height: 16px;
    }

    .nav-item a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .dropdown-menu a {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-height: 36px;
    }

    .dropdown-toggle::after {
        right: 1rem;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Search Component */
.search-container {
    position: relative;
    margin-right: 1rem;
}

.search-button {
    background: none;
    border: none;
    color: var(--photon-white);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.3s var(--ease-curve);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.search-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15vh;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-curve);
    overflow-y: auto;
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.search-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 14, 17, 0.3);
    z-index: -1;
}

.search-modal-content {
    width: 100%;
    max-width: 700px;
    padding: 0;
    position: relative;
    z-index: 10;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.search-input {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 1.5rem;
    background: rgba(43, 46, 50, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--photon-white);
    padding: 1rem var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-curve);
}

.search-input:focus {
    outline: none;
    border-color: var(--lab-aqua);
    box-shadow: 0 0 0 3px rgba(4, 226, 220, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--photon-white);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close svg {
    width: 24px;
    height: 24px;
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    border-radius: var(--border-radius-md);
    background: rgba(30, 33, 38, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.search-results-meta {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--spacing-md);
}

.search-result-item {
    background: rgba(30, 33, 38, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s var(--ease-curve);
    overflow: hidden;
}

.search-result-item:hover {
    background: rgba(30, 33, 38, 0.9);
    border-color: var(--lab-aqua);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-result-link {
    display: block;
    padding: var(--spacing-md);
    color: var(--photon-white);
    text-decoration: none;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.search-result-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Enhanced Syntax Highlighting Styles */
.highlight,
pre[class*="language-"],
code[class*="language-"] {
    color: var(--photon-white);
    background: none;
    font-family: var(--font-code);
    font-size: 0.9em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    tab-size: 4;
    hyphens: none;
}

pre[class*="language-"],
.highlight pre,
.codehilite pre {
    position: relative;
    margin: var(--spacing-lg) 0;
    padding: 2.5rem 1.5rem 1.5rem;
    overflow: auto;
    border-radius: var(--border-radius-md);
    background: rgba(26, 29, 32, 0.8) !important;
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 0 0 1px rgba(83, 51, 237, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.4s var(--ease-curve);
    font-family: var(--font-code, monospace);
    font-size: 0.9rem;
    line-height: 1.6;
}

pre[class*="language-"]:hover,
.highlight pre:hover,
.codehilite pre:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(83, 51, 237, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

pre[class*="language-"]::before,
.highlight pre::before,
.codehilite pre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lab-violet), var(--lab-aqua));
    opacity: 0.7;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

/* Prism Token Styles with Photonic Enhancement */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8892b0;
    font-style: italic;
    opacity: 0.8;
}

.token.punctuation {
    color: #abb2bf;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #e06c75;
}

.token.boolean,
.token.number {
    color: #d19a66;
    text-shadow: 0 0 8px rgba(209, 154, 102, 0.3);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #98c379;
    text-shadow: 0 0 8px rgba(152, 195, 121, 0.2);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
    color: #56b6c2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: #61afef;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(97, 175, 239, 0.2);
}

.token.keyword {
    color: #c678dd;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(198, 120, 221, 0.3);
}

.token.regex,
.token.important {
    color: #e5c07b;
    font-weight: 500;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* Language-specific styling */
.language-yaml .token.key {
    color: #e06c75;
}

.language-python .token.decorator {
    color: #61afef;
    font-weight: 500;
}

/* Copy button integration with Prism */
/* Only target user guide code blocks, not notebook cells */
.article pre .copy-button,
.page-content pre .copy-button,
pre.highlight .copy-button,
pre[class*="language-"] .copy-button:not(.jp-Cell .copy-button),
.codehilite pre .copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(
        135deg,
        var(--lab-violet),
        var(--lab-violet-light)
    );
    color: var(--photon-white);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-curve);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-5px);
    box-shadow: 0 2px 10px rgba(83, 51, 237, 0.3);
    z-index: 5;
}

.article pre:hover .copy-button,
.page-content pre:hover .copy-button,
pre.highlight:hover .copy-button,
pre[class*="language-"]:hover .copy-button:not(.jp-Cell .copy-button),
.codehilite pre:hover .copy-button {
    opacity: 1;
    transform: translateY(0);
}

.article pre .copy-button:hover,
.page-content pre .copy-button:hover,
pre.highlight .copy-button:hover,
pre[class*="language-"] .copy-button:hover:not(.jp-Cell .copy-button),
.codehilite pre .copy-button:hover {
    background: linear-gradient(
        135deg,
        var(--lab-violet-light),
        var(--lab-aqua)
    );
    box-shadow: 0 4px 15px rgba(83, 51, 237, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.article pre .copy-button.copied,
.page-content pre .copy-button.copied,
pre.highlight .copy-button.copied,
pre[class*="language-"] .copy-button.copied:not(.jp-Cell .copy-button),
.codehilite pre .copy-button.copied {
    background: linear-gradient(135deg, var(--status-success), #00c98d);
    box-shadow: 0 2px 10px rgba(0, 178, 124, 0.3);
}

.article pre .copy-button.error,
.page-content pre .copy-button.error,
pre.highlight .copy-button.error,
pre[class*="language-"] .copy-button.error:not(.jp-Cell .copy-button),
.codehilite pre .copy-button.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

pre .lang-badge,
pre[class*="language-"] .lang-badge,
.highlight pre .lang-badge,
.codehilite pre .lang-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(11, 14, 17, 0.9);
    color: var(--lab-aqua);
    border-radius: var(--border-radius-sm, 4px);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-family: var(--font-code);
    border: 1px solid rgba(4, 226, 220, 0.2);
    font-weight: 500;
    opacity: 0.8;
    z-index: 5;
    transition: all 0.3s var(--ease-curve);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

pre:hover .lang-badge,
pre[class*="language-"]:hover .lang-badge,
.highlight pre:hover .lang-badge,
.codehilite pre:hover .lang-badge {
    opacity: 1;
    border-color: rgba(4, 226, 220, 0.4);
}

/* ------------------------------
 * 6. GLASS CARD & COMPONENT STYLES
 * ------------------------------ */
.glass-card {
    background: var(--glass-frost-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: all 0.4s var(--ease-curve);
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
}

/* Beam Button */
.beam-button {
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--photon-white);
    cursor: pointer;
    transition:
        transform 0.3s var(--ease-curve),
        box-shadow 0.3s var(--ease-curve);
    background: linear-gradient(45deg, var(--lab-violet), #7a5ff5);
    box-shadow: 0 4px 15px rgba(83, 51, 237, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.beam-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(83, 51, 237, 0.4);
    color: var(--photon-white);
    text-decoration: none;
}

.beam-button-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ------------------------------
 * 7. SIDEBAR & TOC
 * ------------------------------ */
.sidebar {
    position: relative;
}

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

.toc-container {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-lg));
    max-height: calc(100vh - var(--header-height) - var(--spacing-lg) * 2);
    overflow-y: auto;
    padding: var(--spacing-md);
}

.toc-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--graphite-50);
}

.toc-header h4 {
    margin: 0;
    color: var(--photon-white);
    font-size: 1rem;
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: var(--spacing-xs);
}

.toc-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s var(--ease-curve);
}

.toc-item a:hover,
.toc-item a.active {
    color: var(--lab-aqua);
}

.toc-item.level-2 {
    padding-left: 0;
}
.toc-item.level-3 {
    padding-left: 1rem;
}
.toc-item.level-4 {
    padding-left: 2rem;
}

/* ------------------------------
 * 8. MAIN CONTENT AREA
 * ------------------------------ */
.page-content {
    padding: var(--spacing-xl);
}

.page-title {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -0.5rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

/* Article Styling */
.article {
    max-width: 100%;
}

.article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: rgba(30, 33, 38, 0.5);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.article table thead {
    background: rgba(43, 46, 50, 0.7);
}

.article table th,
.article table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.article blockquote {
    border-left: 4px solid var(--lab-violet);
    margin-left: 0;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(83, 51, 237, 0.1);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.article blockquote p:last-child {
    margin-bottom: 0;
}

.article pre {
    background: var(--glass-frost-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    overflow-x: auto;
    transition: all 0.4s var(--ease-curve);
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(83, 51, 237, 0.1);
    padding-top: 3rem; /* Add space for the copy button */
}

.article pre:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.4),
        inset 0 0 2px rgba(255, 255, 255, 0.15),
        0 0 15px rgba(83, 51, 237, 0.2);
}

.article pre::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--lab-violet),
        var(--lab-aqua),
        transparent
    );
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    opacity: 0.5;
    transition: opacity 0.4s var(--ease-curve);
}

.article pre:hover::before {
    opacity: 0.8;
}

/* Code */
.article code {
    font-family: var(--font-code);
    font-size: 0.9em;
    background-color: var(--graphite-50);
    border: 1px solid var(--graphite-70);
    color: var(--lab-aqua);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(4, 226, 220, 0.1);
    transition: all 0.2s var(--ease-curve);
}

.article code:hover {
    box-shadow: 0 0 12px rgba(4, 226, 220, 0.2);
    border-color: rgba(4, 226, 220, 0.5);
}

.article pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: inherit;
    white-space: pre;
    display: block;
    line-height: 1.6;
    box-shadow: none;
}

.article pre code:hover {
    box-shadow: none;
    border-color: transparent;
}

/* =================================
 * 12. JUPYTER NOTEBOOK ENHANCEMENTS
 * ================================= */

/* Cell container */
.nb-cell {
    margin-bottom: var(--spacing-lg, 1.5rem);
    position: relative;
}

/* Base for input and output blocks */
.nb-input,
.nb-output {
    position: relative;
    border-radius: var(--border-radius-md, 8px);
    background: var(--glass-frost-bg, rgba(30, 33, 38, 0.75));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: var(--spacing-md, 1rem);
    display: flex;
    overflow: hidden;
    transition: all 0.4s var(--ease-curve, cubic-bezier(0.16, 1, 0.3, 1));
}

.nb-input:hover,
.nb-output:hover {
    border-color: var(--glass-border-hover, rgba(255, 255, 255, 0.25));
    transform: translateY(-2px);
}

/* Input/Output prompt styling (e.g., In [1]:) */
.nb-input-prompt,
.nb-output-prompt {
    font-family: var(--font-code, monospace);
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--spacing-md, 1rem);
    text-align: right;
    min-width: 90px;
    user-select: none;
    flex-shrink: 0;
}

.nb-input-prompt {
    background: rgba(83, 51, 237, 0.1);
    border-right: 2px solid var(--lab-violet, #5333ed);
    color: var(--lab-violet, #5333ed);
}

.nb-output-prompt {
    background: rgba(4, 226, 220, 0.1);
    border-right: 2px solid var(--lab-aqua, #04e2dc);
    color: var(--lab-aqua, #04e2dc);
}

/* Content area for code and outputs */
.nb-input-content,
.nb-output-content {
    flex-grow: 1;
    overflow-x: auto;
    position: relative;
}

/* Ensure 'pre' and 'code' elements are styled correctly inside notebooks */
.nb-input-content pre,
.nb-output-content pre {
    margin: 0 !important;
    padding: var(--spacing-md, 1rem) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nb-input-content code,
.nb-output-content code {
    background: transparent !important;
    color: var(--photon-white, #f5f7fa) !important;
    font-family: var(--font-code, monospace) !important;
    font-size: 0.9em !important;
    line-height: 1.6 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Specific output types */
.nb-output-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.nb-output-image,
.nb-output-display-data {
    display: flex;
    justify-content: center;
    padding: var(--spacing-md, 1rem);
}

.nb-output img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm, 4px);
    background: white;
}

.nb-error {
    background: rgba(255, 84, 96, 0.1) !important;
    border-color: var(--status-error, #ff5460) !important;
}

.nb-error .nb-output-prompt {
    background: rgba(255, 84, 96, 0.2);
    border-right-color: var(--status-error, #ff5460);
    color: var(--status-error, #ff5460);
}

.nb-error pre {
    color: #ffcdd2 !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Position copy button and language badge correctly */
.nb-input-content .copy-button,
.nb-output-content .copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(
        135deg,
        var(--lab-violet, #5333ed),
        rgba(83, 51, 237, 0.8)
    );
    color: var(--photon-white, #f5f7fa);
    border: none;
    border-radius: var(--border-radius-sm, 4px);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(
        --font-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif
    );
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s var(--ease-curve, cubic-bezier(0.16, 1, 0.3, 1));
    box-shadow: 0 2px 8px rgba(83, 51, 237, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nb-input-content:hover .copy-button,
.nb-output-content:hover .copy-button {
    opacity: 1;
    transform: translateY(0);
}

.nb-input-content .copy-button:hover,
.nb-output-content .copy-button:hover {
    box-shadow: 0 4px 15px rgba(83, 51, 237, 0.5);
    transform: scale(1.05);
}

.nb-input-content .copy-button.copied,
.nb-output-content .copy-button.copied {
    background: linear-gradient(
        135deg,
        var(--status-success, #00b27c),
        #00c98d
    );
    box-shadow: 0 2px 10px rgba(0, 178, 124, 0.3);
}

.nb-input-content .lang-badge,
.nb-output-content .lang-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(11, 14, 17, 0.9);
    color: var(--lab-aqua, #04e2dc);
    border-radius: var(--border-radius-sm, 4px);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-family: var(--font-code, monospace);
    border: 1px solid rgba(4, 226, 220, 0.2);
    font-weight: 500;
    opacity: 0.8;
    z-index: 5;
    transition: all 0.3s var(--ease-curve, cubic-bezier(0.16, 1, 0.3, 1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nb-input-content:hover .lang-badge,
.nb-output-content:hover .lang-badge {
    opacity: 1;
    border-color: rgba(4, 226, 220, 0.4);
}

/* Legacy support for existing notebook styles */
.nb-input pre,
.nb-output pre {
    position: relative;
    margin: 0;
    padding: var(--spacing-md, 1rem);
    overflow: auto;
    border-radius: 0;
    background: transparent !important;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nb-input code,
.nb-output code {
    color: var(--photon-white, #f5f7fa) !important;
    background: none !important;
    font-family: var(--font-code, monospace);
    font-size: 0.9em;
    line-height: 1.6;
    border: none;
    padding: 0;
}

/* Enhanced syntax highlighting for notebook content */
.nb-input-content .token.keyword,
.nb-output-content .token.keyword {
    color: var(--lab-violet, #5333ed) !important;
    font-weight: 600;
}

.nb-input-content .token.string,
.nb-output-content .token.string {
    color: var(--lab-aqua, #04e2dc) !important;
}

.nb-input-content .token.number,
.nb-output-content .token.number {
    color: #f59e0b !important;
}

.nb-input-content .token.function,
.nb-output-content .token.function {
    color: #8b5cf6 !important;
}

.nb-input-content .token.operator,
.nb-output-content .token.operator {
    color: #ef4444 !important;
}

.nb-input-content .token.comment,
.nb-output-content .token.comment {
    color: #6b7280 !important;
    font-style: italic;
}

.nb-input-content .token.builtin,
.nb-output-content .token.builtin {
    color: #10b981 !important;
}

/* JupyterLab/Jupyter extension support */
.jp-InputArea .token.keyword,
.jp-OutputArea .token.keyword {
    color: var(--lab-violet, #5333ed) !important;
    font-weight: 600;
}

.jp-InputArea .token.string,
.jp-OutputArea .token.string {
    color: var(--lab-aqua, #04e2dc) !important;
}

.jp-InputArea .token.number,
.jp-OutputArea .token.number {
    color: #f59e0b !important;
}

.jp-InputArea .token.function,
.jp-OutputArea .token.function {
    color: #8b5cf6 !important;
}

.jp-InputArea .token.operator,
.jp-OutputArea .token.operator {
    color: #ef4444 !important;
}

.jp-InputArea .token.comment,
.jp-OutputArea .token.comment {
    color: #6b7280 !important;
    font-style: italic;
}

.jp-InputArea .token.builtin,
.jp-OutputArea .token.builtin {
    color: #10b981 !important;
}

/* ================================
 * YAML SYNTAX HIGHLIGHTING
 * ================================ */
.language-yaml .token.key {
    color: var(--lab-violet, #5333ed) !important;
    font-weight: 600;
}

.language-yaml .token.atrule {
    color: var(--lab-violet, #5333ed) !important;
    font-weight: 600;
}

.language-yaml .token.string {
    color: var(--lab-aqua, #04e2dc) !important;
}

.language-yaml .token.scalar {
    color: #f59e0b !important;
}

.language-yaml .token.punctuation {
    color: var(--photon-white, #f5f7fa) !important;
}

.language-yaml .token.boolean {
    color: #ec4899 !important;
    font-weight: 500;
}

.language-yaml .token.number {
    color: #f59e0b !important;
}

.language-yaml .token.comment {
    color: #6b7280 !important;
    font-style: italic;
}

.language-yaml .token.anchor,
.language-yaml .token.alias {
    color: #8b5cf6 !important;
}

.language-yaml .token.tag {
    color: #ef4444 !important;
}

/* Enhanced YAML code blocks */
pre[class*="language-yaml"],
.highlight-yaml pre,
.codehilite-yaml pre {
    background: rgba(26, 29, 32, 0.8) !important;
    border-left: 3px solid var(--lab-violet, #5333ed);
}

pre[class*="language-yaml"]::before,
.highlight-yaml pre::before,
.codehilite-yaml pre::before {
    content: "YAML";
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(83, 51, 237, 0.1);
    color: var(--lab-violet, #5333ed);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm, 4px);
    font-size: 0.7rem;
    font-family: var(--font-code, monospace);
    border: 1px solid rgba(83, 51, 237, 0.2);
    font-weight: 500;
    opacity: 0.8;
}

/* Tables in notebook outputs */
.nb-output table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md, 1rem) 0;
    background: rgba(30, 33, 38, 0.5);
    border-radius: var(--border-radius-sm, 4px);
    overflow: hidden;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.nb-output th,
.nb-output td {
    padding: var(--spacing-sm, 0.75rem) var(--spacing-md, 1rem);
    text-align: left;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.nb-output th {
    background: rgba(83, 51, 237, 0.2);
    color: var(--photon-white, #f5f7fa);
    font-weight: 600;
}

.nb-output td {
    color: var(--photon-white, #f5f7fa);
}

/* DataFrame styling */
.nb-output .dataframe {
    font-size: 0.85rem;
}

.nb-output .dataframe thead th {
    background: rgba(4, 226, 220, 0.1);
    color: var(--lab-aqua, #04e2dc);
    border-bottom: 2px solid var(--lab-aqua, #04e2dc);
}

.nb-output .dataframe tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.nb-output .dataframe tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Plot and image outputs */
.nb-output .output_png,
.nb-output .output_jpeg,
.nb-output .output_svg {
    text-align: center;
    margin: var(--spacing-md, 1rem) 0;
}

.nb-output .output_png img,
.nb-output .output_jpeg img,
.nb-output .output_svg img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm, 4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: white;
}

/* Text output formatting */
.nb-output .output_text {
    font-family: var(--font-code, monospace);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--photon-white, #f5f7fa);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Execution count styling */
.nb-input .execution_count::before {
    content: "In [";
}

.nb-input .execution_count::after {
    content: "]:";
}

.nb-output .execution_count::before {
    content: "Out[";
}

.nb-output .execution_count::after {
    content: "]:";
}

/* Admonitions */
.admonition {
    background: var(--glass-frost-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 0;
    margin: var(--spacing-lg) 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-curve);
}

.admonition:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

.admonition-title {
    padding: var(--spacing-md);
    margin: 0;
    font-weight: 700;
    color: var(--photon-white);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.admonition-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.admonition-content > :last-child {
    margin-bottom: 0;
}

/* Admonition types */
.admonition.note {
    border-left: 4px solid var(--lab-violet);
}
.admonition.tip {
    border-left: 4px solid var(--lab-aqua);
}
.admonition.warning {
    border-left: 4px solid var(--status-warning);
}
.admonition.danger {
    border-left: 4px solid var(--status-error);
}
.admonition.success {
    border-left: 4px solid var(--status-success);
}

/* Page navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--graphite-50);
}

.prev-link,
.next-link {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.next-link {
    text-align: right;
    margin-left: auto;
}

.nav-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 500;
}

/* ------------------------------
 * 9. FOOTER
 * ------------------------------ */
.site-footer {
    background: rgba(11, 14, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
}

/* ------------------------------
 * 10. UTILITY CLASSES
 * ------------------------------ */
.fade-in {
    animation: fadeIn 0.8s var(--ease-curve);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
 * 11. SYNTAX HIGHLIGHTING - PHOTONIC STYLE
 * ------------------------------ */
.codehilite .hll {
    background-color: rgba(83, 51, 237, 0.2);
    border-radius: 2px;
}
.codehilite .c {
    color: #8892b0;
    font-style: italic;
    opacity: 0.8;
} /* Comment */
.codehilite .err {
    color: #ff5460;
    text-shadow: 0 0 3px rgba(255, 84, 96, 0.3);
} /* Error */
.codehilite .k {
    color: #c678dd;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(198, 120, 221, 0.2);
} /* Keyword */
.codehilite .l {
    color: #d19a66;
    text-shadow: 0 0 2px rgba(209, 154, 102, 0.2);
} /* Literal */
.codehilite .n {
    color: #abb2bf;
} /* Name */
.codehilite .o {
    color: #c678dd;
} /* Operator */
.codehilite .p {
    color: #abb2bf;
} /* Punctuation */
.codehilite .ch {
    color: #8892b0;
    font-style: italic;
    opacity: 0.8;
} /* Comment.Hashbang */
.codehilite .cm {
    color: #8892b0;
    font-style: italic;
    opacity: 0.8;
} /* Comment.Multiline */
.codehilite .cp {
    color: #8892b0;
    opacity: 0.9;
} /* Comment.Preproc */
.codehilite .cpf {
    color: #8892b0;
    opacity: 0.9;
} /* Comment.PreprocFile */
.codehilite .c1 {
    color: #8892b0;
    font-style: italic;
    opacity: 0.8;
} /* Comment.Single */
.codehilite .cs {
    color: #8892b0;
    font-style: italic;
    opacity: 0.8;
} /* Comment.Special */
.codehilite .gd {
    color: #ff5460;
    background-color: rgba(255, 84, 96, 0.1);
    border-radius: 2px;
    padding: 0 0.2em;
} /* Generic.Deleted */
.codehilite .ge {
    font-style: italic;
} /* Generic.Emph */
.codehilite .gh {
    color: #61afef;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(97, 175, 239, 0.2);
} /* Generic.Heading */
.codehilite .gi {
    color: #98c379;
    background-color: rgba(152, 195, 121, 0.1);
    border-radius: 2px;
    padding: 0 0.2em;
} /* Generic.Inserted */
.codehilite .gs {
    font-weight: bold;
} /* Generic.Strong */
.codehilite .gu {
    color: #61afef;
} /* Generic.Subheading */
.codehilite .kc {
    color: #c678dd;
} /* Keyword.Constant */
.codehilite .kd {
    color: #c678dd;
} /* Keyword.Declaration */
.codehilite .kn {
    color: #c678dd;
} /* Keyword.Namespace */
.codehilite .kp {
    color: #c678dd;
} /* Keyword.Pseudo */
.codehilite .kr {
    color: #c678dd;
} /* Keyword.Reserved */
.codehilite .kt {
    color: #e5c07b;
} /* Keyword.Type */
.codehilite .ld {
    color: #98c379;
} /* Literal.Date */
.codehilite .m {
    color: #d19a66;
} /* Literal.Number */
.codehilite .s {
    color: #98c379;
    text-shadow: 0 0 3px rgba(152, 195, 121, 0.15);
} /* Literal.String */
.codehilite .na {
    color: #e5c07b;
    text-shadow: 0 0 3px rgba(229, 192, 123, 0.15);
} /* Name.Attribute */
.codehilite .nb {
    color: #04e2dc;
    text-shadow: 0 0 3px rgba(4, 226, 220, 0.15);
} /* Name.Builtin */
.codehilite .nc {
    color: #e5c07b;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(229, 192, 123, 0.15);
} /* Name.Class */
.codehilite .no {
    color: #e5c07b;
    text-shadow: 0 0 3px rgba(229, 192, 123, 0.15);
} /* Name.Constant */
.codehilite .nd {
    color: #61afef;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(97, 175, 239, 0.15);
} /* Name.Decorator */
.codehilite .ni {
    color: #abb2bf;
} /* Name.Entity */
.codehilite .ne {
    color: #e5c07b;
} /* Name.Exception */
.codehilite .nf {
    color: #61afef;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(97, 175, 239, 0.2);
} /* Name.Function */
.codehilite .nl {
    color: #abb2bf;
} /* Name.Label */
.codehilite .nn {
    color: #abb2bf;
} /* Name.Namespace */
.codehilite .nx {
    color: #61afef;
} /* Name.Other */
.codehilite .py {
    color: #abb2bf;
} /* Name.Property */
.codehilite .nt {
    color: #e06c75;
} /* Name.Tag */
.codehilite .nv {
    color: #abb2bf;
} /* Name.Variable */
.codehilite .ow {
    color: #c678dd;
} /* Operator.Word */
.codehilite .w {
    color: #abb2bf;
} /* Text.Whitespace */
.codehilite .mb {
    color: #d19a66;
} /* Literal.Number.Bin */
.codehilite .mf {
    color: #d19a66;
} /* Literal.Number.Float */
.codehilite .mh {
    color: #d19a66;
} /* Literal.Number.Hex */
.codehilite .mi {
    color: #d19a66;
} /* Literal.Number.Integer */
.codehilite .mo {
    color: #d19a66;
} /* Literal.Number.Oct */
.codehilite .sa {
    color: #98c379;
} /* Literal.String.Affix */
.codehilite .sb {
    color: #98c379;
} /* Literal.String.Backtick */
.codehilite .sc {
    color: #98c379;
} /* Literal.String.Char */
.codehilite .dl {
    color: #98c379;
} /* Literal.String.Delimiter */
.codehilite .sd {
    color: #98c379;
} /* Literal.String.Doc */
.codehilite .s2 {
    color: #98c379;
} /* Literal.String.Double */
.codehilite .se {
    color: #d19a66;
} /* Literal.String.Escape */
.codehilite .sh {
    color: #98c379;
} /* Literal.String.Heredoc */
.codehilite .si {
    color: #d19a66;
} /* Literal.String.Interpol */
.codehilite .sx {
    color: #98c379;
} /* Literal.String.Other */
.codehilite .sr {
    color: #98c379;
} /* Literal.String.Regex */
.codehilite .s1 {
    color: #98c379;
} /* Literal.String.Single */
.codehilite .ss {
    color: #98c379;
} /* Literal.String.Symbol */
.codehilite .bp {
    color: #abb2bf;
} /* Name.Builtin.Pseudo */
.codehilite .fm {
    color: #61afef;
} /* Name.Function.Magic */
.codehilite .vc {
    color: #abb2bf;
} /* Name.Variable.Class */
.codehilite .vg {
    color: #abb2bf;
} /* Name.Variable.Global */
.codehilite .vi {
    color: #abb2bf;
} /* Name.Variable.Instance */
.codehilite .vm {
    color: #abb2bf;
} /* Name.Variable.Magic */
.codehilite .il {
    color: #d19a66;
} /* Literal.Number.Integer.Long */

/* ------------------------------
 * 12. RESPONSIVE DESIGN
 * ------------------------------ */
@media (max-width: 1200px) {
    .content-layout {
        gap: var(--spacing-lg);
    }

    .sidebar {
        --sidebar-width: 240px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    .main-content {
        padding: var(--spacing-lg) 0;
    }

    .page-content {
        padding: 0;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .site-header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 36px;
    }

    .site-name {
        font-size: 1.1rem;
    }

    .page-content {
        padding: 0 0.5rem;
    }

    .article pre {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .header-content {
        padding: 0 0.75rem;
    }

    .menu-toggle {
        width: 28px;
        height: 24px;
    }

    .menu-toggle .line {
        height: 3px;
    }

    .menu-toggle .line:nth-child(2) {
        top: 10px;
    }

    .menu-toggle .line:nth-child(3) {
        top: 20px;
    }

    .menu-toggle.active .line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.active .line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .site-header,
    .site-footer,
    .sidebar,
    #background-beams {
        display: none;
    }

    .content-layout {
        display: block;
    }

    .glass-card {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .page-content {
        padding: 0;
    }

    .article a {
        color: blue;
        text-decoration: underline;
    }
}
