/* Documentation Page Styles */

:root {
    --primary-color: #0dcaf0;
    --primary-dark: #0a8ca8;
    --accent-color: #7c3aed;
    --success-color: #10b981;
    --text-dark: #030303;
    --text-gray: #606060;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero Section */
.docs-hero {
    background: linear-gradient(135deg, #0dcaf0 0%, #7c3aed 100%);
    color: white;
    padding: 100px 0 80px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -30px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.docs-hero .container {
    text-align: center;
}

.docs-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.docs-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Navigation Sidebar */
.docs-sidebar {
    position: sticky;
    top: 80px;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.docs-sidebar h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-group-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(13, 202, 240, 0.2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.docs-group-title:first-of-type {
    margin-top: 1rem;
}

.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.docs-nav-link:hover,
.docs-nav-link.active {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px);
}

.docs-nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

/* Content Sections */
.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.docs-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #0dcaf0 0%, #7c3aed 100%) 1;
}

.docs-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.docs-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.docs-section p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.docs-section ul,
.docs-section ol {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.docs-section li {
    margin-bottom: 0.75rem;
}

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    border: 2px solid var(--border-color);
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(13, 202, 240, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.code-block code {
    color: #d4d4d4;
}

.code-inline {
    background: rgba(13, 202, 240, 0.1);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(13,202,240,0.1) 0%, rgba(124,58,237,0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.info-box.danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.info-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success-color);
}

.info-box-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.docs-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.docs-table thead th {
    background: linear-gradient(135deg, #0dcaf0 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.docs-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.docs-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-required {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-optional {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Step Cards */
.step-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.15);
    transform: translateY(-4px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0dcaf0 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.step-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .docs-hero h1 {
        font-size: 2rem;
    }
    
    .docs-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
}
