/* Docs-specific styles */

/* Docs Layout */
.docs-container {
    display: flex;
    min-height: 100vh;
    padding-top: 64px; /* Height of header */
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: var(--docs-sidebar-bg);
    color: var(--docs-sidebar-text);
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    padding: 2rem 0;
    border-right: 1px solid var(--docs-border);
}

.docs-sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.docs-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.docs-sidebar-subtitle {
    font-size: 0.875rem;
    color: var(--docs-sidebar-text);
}

.docs-nav {
    padding: 0 1rem;
}

.docs-nav-section {
    margin-bottom: 1.5rem;
}

.docs-nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--docs-sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.25rem;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--docs-sidebar-text);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.docs-nav-item:hover {
    background: var(--docs-sidebar-hover);
    color: white;
}

.docs-nav-item.active {
    background: var(--docs-sidebar-active);
    color: white;
    font-weight: 500;
}

.docs-nav-item i {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
}

/* Main Content Area */
.docs-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem 4rem;
    max-width: 100%;
}

.docs-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Docs Header */
.docs-header-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--docs-border);
}

.docs-title {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.docs-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    line-height: 1.6;
}

.docs-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.docs-badge-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.docs-badge-outline {
    border: 2px solid var(--docs-border);
    color: #374151;
}

/* Content Sections */
.docs-section {
    margin-bottom: 3rem;
}

.docs-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.docs-section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.docs-text {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* Feature Cards */
.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.docs-feature-card {
    background: white;
    border: 2px solid var(--docs-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.docs-feature-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.2);
    transform: translateY(-4px);
}

.docs-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.docs-feature-icon i {
    width: 24px;
    height: 24px;
    color: white;
}

.docs-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.docs-feature-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

/* Quick Start Section */
.docs-quickstart {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.docs-quickstart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.docs-quickstart-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.docs-quickstart-step {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.docs-quickstart-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.docs-quickstart-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.docs-quickstart-content p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* Code Blocks */
.docs-code-block {
    background: var(--docs-code-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

.docs-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-code-language {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-code-copy {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-code-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.docs-code pre {
    margin: 0;
    overflow-x: auto;
}

.docs-code code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: #E2E8F0;
    line-height: 1.6;
}

/* Inline Code */
code {
    background: var(--docs-code-inline-bg);
    color: #DB2777;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
}

/* Info Boxes */
.docs-info-box {
    border-left: 4px solid var(--primary-blue);
    background: #EFF6FF;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.docs-info-box-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-info-box-content {
    color: #1E40AF;
    font-size: 0.875rem;
    line-height: 1.6;
}

.docs-warning-box {
    border-left: 4px solid #F59E0B;
    background: #FFFBEB;
}

.docs-warning-box .docs-info-box-title {
    color: #D97706;
}

.docs-warning-box .docs-info-box-content {
    color: #92400E;
}

/* API Table */
.docs-api-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.docs-api-table thead {
    background: #F9FAFB;
}

.docs-api-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid var(--docs-border);
}

.docs-api-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #4B5563;
    border-bottom: 1px solid var(--docs-border);
}

.docs-api-table tr:last-child td {
    border-bottom: none;
}

.docs-api-table code {
    font-size: 0.8125rem;
}

/* Response Example */
.docs-response-example {
    background: #F8FAFC;
    border: 1px solid var(--docs-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.docs-response-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-response-status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #10B981;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile Sidebar Toggle */
.docs-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-sidebar-toggle:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-main {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .docs-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .docs-title {
        font-size: 2rem;
    }

    .docs-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .docs-main {
        padding: 1.5rem 1rem;
    }

    .docs-title {
        font-size: 1.75rem;
    }

    .docs-section-title {
        font-size: 1.5rem;
    }

    .docs-code-block {
        padding: 1rem;
    }

    .docs-quickstart {
        padding: 1.5rem;
    }
}
