﻿/* =========================================
   1. Docs Layout (Sidebar + Content)
   ========================================= */
.docs-wrapper {
    padding-top: 6rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .docs-wrapper {
        grid-template-columns: 240px 1fr;
        align-items: start;
        gap: 4rem;
    }
}

/* =========================================
   2. Sidebar Navigation
   ========================================= */
.docs-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .docs-sidebar {
        display: block;
        position: sticky;
        top: 6rem;
        height: calc(100vh - 6rem);
        overflow-y: auto;
        padding-right: 1rem;
        border-right: 1px solid var(--slate-800);
    }
}

.docs-nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}
.docs-nav-title:first-child { margin-top: 0; }

.docs-nav-link {
    display: block;
    color: var(--slate-400);
    font-size: 0.9rem;
    padding: 0.35rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.docs-nav-link:hover {
    color: var(--white);
    border-left-color: var(--slate-700);
}

.docs-nav-link.active {
    color: var(--emerald-400);
    border-left-color: var(--emerald-400);
    font-weight: 600;
}

/* =========================================
   3. Main Content Styling
   ========================================= */
.docs-content {
    min-width: 0; /* Prevent overflow */
}

.docs-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.docs-content h2 {
    font-size: 1.75rem;
    color: var(--white);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-800);
}

.docs-content h3 {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-content p {
    color: var(--slate-300);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.docs-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--slate-300);
}

.docs-content li {
    margin-bottom: 0.5rem;
}

/* Platform Support List */
.platform-list {
    list-style: none !important; /* Override standard ul */
    padding: 0 !important;
    margin: 0 !important;
    color: var(--slate-300);
}
.platform-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.platform-list li span { margin-right: 0.75rem; }
.platform-list li strong { min-width: 5.5rem; }

/* Links */
.text-link {
    color: var(--emerald-400);
    text-decoration: underline;
}
.text-link:hover { color: var(--emerald-300); }

/* Small helper text */
.small-text {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
.sub-label {
    color: var(--slate-200);
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* =========================================
   4. Tables (Replaced inline styles)
   ========================================= */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.docs-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    color: var(--slate-300);
    font-size: 0.95rem;
}

.docs-table th {
    padding: 0.75rem;
    border-bottom: 1px solid var(--slate-700);
    color: var(--white);
    font-weight: 600;
}

.docs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--slate-800);
}

.table-divider td {
    background-color: rgba(30, 41, 59, 0.5);
    font-weight: 600;
    color: var(--emerald-400); /* Default divider color */
}

/* Specific colors for specific dividers if needed */
.table-divider:nth-of-type(3) td { color: var(--cyan-400); } /* Pro Features */

/* =========================================
   5. Note Boxes (Cleaned Up)
   ========================================= */
.note-box {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--slate-700);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    color: var(--slate-300);
    font-size: 0.95rem;
}

.note-box strong { margin-bottom: 0.5rem; color: var(--white); }

/* Warning Variant */
.note-box.warning {
    background-color: rgba(245, 158, 11, 0.05);
    border-color: #f59e0b;
}
.note-box.warning strong { color: #f59e0b; }

/* =========================================
   6. Code Windows
   ========================================= */
.code-window {
    background-color: var(--slate-950);
    border: 1px solid var(--slate-800);
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    margin: 1.5rem 0;
}

.code-window-bar {
    background-color: var(--slate-900);
    border-bottom: 1px solid var(--slate-800);
    padding: 0.5rem 1rem;
    color: var(--slate-500);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

.code-content {
    padding: 1.25rem;
    color: var(--slate-300);
    white-space: pre-wrap;
    line-height: 1.6;
    overflow-x: auto;
}

/* Syntax Colors */
.c-gray { color: var(--slate-500); }
.c-red { color: var(--red-500); }
.c-green { color: var(--emerald-400); }
.c-cyan { color: var(--cyan-400); }
.c-white { color: var(--white); }

/* =========================================
   7. Edition Switcher
   ========================================= */
.edition-switcher {
    background-color: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 0.5rem;
    padding: 0.25rem;
    display: flex;
    margin-bottom: 2rem;
}

.edition-btn {
    flex: 1;
    background: transparent;
    color: var(--slate-400);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.edition-btn:hover { color: var(--white); }

.edition-btn.active {
    background-color: var(--emerald-500); /* Community Green */
    color: var(--slate-950);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Enterprise Active Color */
[data-edition="enterprise"] .edition-switcher .edition-btn[data-target="enterprise"].active {
    background-color: var(--blue-500);
    color: var(--white);
}

/* Visibility Logic */
[data-edition="community"] .enterprise-only { display: none !important; }
[data-edition="enterprise"] .community-only { display: none !important; }

.enterprise-only { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}