/* Docs Layout */
.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem 20px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.sidebar-content {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h4 {
    color: #22D3EE;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 0.25rem;
}

.sidebar-section a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #94A3B8;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-section a:hover {
    color: #22D3EE;
    background: rgba(34, 211, 238, 0.05);
}

.sidebar-section a.active {
    color: #22D3EE;
    background: rgba(34, 211, 238, 0.1);
    font-weight: 500;
}

/* Docs Content */
.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 900px;
}

.docs-content article {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 12px;
    padding: 3rem;
}

.docs-content h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.docs-content .lead {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.docs-content h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.docs-content h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.docs-content p {
    margin-bottom: 1rem;
    color: #CBD5E1;
    line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #CBD5E1;
}

.docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.docs-content a {
    color: #22D3EE;
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

.docs-content code {
    background: rgba(0, 0, 0, 0.3);
    color: #22D3EE;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

/* Info Boxes */
.info-box,
.warning-box,
.success-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3B82F6;
}

.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #FBBF24;
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22C55E;
}

.info-icon,
.warning-icon,
.success-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Code Block */
.code-block {
    background: #000;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header {
    background: rgba(34, 211, 238, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.code-header span {
    color: #22D3EE;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.copy-btn {
    background: rgba(34, 211, 238, 0.2);
    color: #22D3EE;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(34, 211, 238, 0.3);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    color: #E2E8F0;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Step Card */
.step-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.step-card h3 {
    margin-top: 0;
    color: #22D3EE;
}

/* Next Steps */
.next-steps {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(34, 211, 238, 0.1);
}

.next-steps h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.next-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.next-card:hover {
    border-color: #22D3EE;
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-2px);
}

.next-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.next-card strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

.next-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #94A3B8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #22D3EE;
    color: #0B0E14;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(34, 211, 238, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }

    .sidebar-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

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

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 999;
        padding: 80px 20px 20px;
        background: #0B0E14;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-content {
        grid-template-columns: 1fr;
    }

    .docs-content {
        width: 100%;
    }

    .docs-content article {
        padding: 1.5rem;
    }

    .docs-content h1 {
        font-size: 2rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
    }
}
