/* Documentation specific styles */
.docs-container {
    position: relative;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 120px auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 100;
    min-height: calc(100vh - 160px); /* Ensure enough content space */
}

.docs-sidebar {
    flex: 0 0 250px;
    background: linear-gradient(135deg, rgba(20,20,30,0.3), rgba(40,40,60,0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-content {
    flex: 1 1 600px;
    background: linear-gradient(135deg, rgba(20,20,30,0.3), rgba(40,40,60,0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.docs-sidebar li {
    margin-bottom: 10px;
}

.docs-sidebar a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    color: var(--text-medium);
}

.docs-sidebar a:hover, .docs-sidebar a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.docs-sidebar a.active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(245, 158, 11, 0.1));
    border-left: 3px solid var(--primary-yellow);
}

.docs-sidebar a i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--hover-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.docs-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--primary-yellow);
}

.docs-content p, .docs-content li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.docs-content li {
    margin-bottom: 10px;
}

.docs-content code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.docs-content pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-content pre code {
    background: transparent;
    padding: 0;
}

.alert {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.4), rgba(40, 40, 50, 0.4));
    border-left: 4px solid var(--primary-yellow);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.alert-warning {
    border-left-color: #f59e0b;
}

.alert-info {
    border-left-color: #3b82f6;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert p {
    margin-bottom: 0;
}

.docs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Specific styles from docs/index.html */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(30,30,40,0.4), rgba(50,50,70,0.4));
    border-radius: var(--border-radius-md);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: rgba(250, 204, 21, 0.2);
}

.card i {
    font-size: 2rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-medium);
    margin-bottom: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(245, 158, 11, 0.1));
    border-radius: var(--border-radius-sm);
    color: var(--primary-yellow);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.25), rgba(245, 158, 11, 0.2));
    transform: translateY(-2px);
}

/* --- FIX for button icon alignment --- */
.btn i {
    font-size: 0.95em; /* Slightly adjust icon size if needed */
    line-height: 1; /* Reset line-height */
    margin: 0; /* Override any inherited margins (from .card i) */
}

/* Specific styles from docs/config.html */
.config-section {
    margin-bottom: 40px;
}

.config-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--border-color);
}

.config-item strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.config-item code {
    font-weight: bold;
}

.config-item p {
    color: var(--text-medium);
    margin-bottom: 8px;
}

.config-item ul {
    padding-left: 15px;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Specific styles from docs/tools.html */
.feature-list li {
    border-left: 3px solid var(--border-color);
    padding-left: 15px;
    margin-bottom: 25px;
}

.feature-list strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.feature-list p {
    color: var(--text-medium);
}

/* Specific styles from docs/faq.html */
.faq-item {
    margin-bottom: 30px;
}

.faq-item strong {
     color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
     color: var(--text-medium);
}

/* Specific styles from docs/install.html */
.toc {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.4), rgba(40, 40, 50, 0.4));
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.toc ul {
    margin-bottom: 0;
}


@media (max-width: 920px) {
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
    
    .docs-content {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    html, body {
        font-size: 15px;
    }
    .docs-container {
        flex-direction: column;
        padding: 8px 2px;
        margin: 70px 0 20px 0;
        min-height: unset;
    }
    .docs-sidebar {
        width: 100%;
        max-width: 100vw;
        padding: 10px 4px;
        position: static;
        top: unset;
        max-height: unset;
        font-size: 1em;
    }
    .docs-content {
        padding: 12px 4px;
        font-size: 1em;
    }
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .card {
        padding: 12px 8px;
        font-size: 1em;
    }
    .btn {
        padding: 10px 8px;
        font-size: 1em;
    }
    .alert {
        padding: 10px 8px;
        font-size: 1em;
    }
    .toc {
        padding: 10px 8px;
        font-size: 1em;
    }
    h1, .docs-content h1 {
        font-size: 1.5em;
    }
    h2, .docs-content h2 {
        font-size: 1.2em;
    }
    h3, .docs-content h3 {
        font-size: 1em;
    }
}

/* Ensure body allows scrolling and isn't fixed */
/* These should ideally be in the main style.css, but including here for completeness if docs pages are standalone */
body {
    font-family: var(--font-primary);
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: relative; /* Needed for absolute positioning of children */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; /* Use min-height instead of height */
    overflow-y: auto; /* Explicitly allow vertical scrolling */
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    overflow-y: auto; /* Allow vertical scrolling */
}

/* Position fixed elements with z-index to ensure proper stacking */
.honeycomb-background, .honeycomb-shapes-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.honeycomb-background {
    z-index: 0;
}

.honeycomb-shapes-layer {
    z-index: 1; /* Above light canvas */
}

.top-nav {
    position: fixed;
    top: 0;
    right: 0; /* Keep nav elements to the right */
    /* width: 100%; Removed width: 100% */
    z-index: 200; /* Ensure nav stays on top */
    display: flex; /* Use flex for positioning */
    align-items: center;
    padding: 16px 20px; /* Original padding */
} 