/* ============================================
   ASSISEEK DOCS - ПОЛНАЯ ВЕРСИЯ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at 20% 30%, #1a1a2e, #0a0a0f);
}

.gradient-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15), transparent 50%);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    padding: 0.8rem 2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-weight: 500;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #818cf8;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 100px;
    padding: 0.5rem 1.2rem !important;
    color: white !important;
}

.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.8rem;
}

.navbar-toggler-icon i {
    color: white;
    font-size: 1.2rem;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.docs-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* ===== БОКОВОЕ МЕНЮ ===== */
.docs-sidebar {
    position: sticky;
    top: 90px;
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    height: fit-content;
    transition: var(--transition);
}

.sidebar-header-mobile {
    display: none;
}

.docs-sidebar-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #818cf8;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.docs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav li {
    margin-bottom: 0.25rem;
}

.docs-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    transition: var(--transition);
}

.docs-nav a i {
    width: 20px;
    font-size: 1rem;
    color: #6b7280;
}

.docs-nav a:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.docs-nav a:hover i {
    color: #818cf8;
}

.docs-nav a.active {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-left: 2px solid #6366f1;
}

.docs-nav a.active i {
    color: #818cf8;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.docs-content {
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 2.5rem;
}

.docs-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.docs-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    color: #818cf8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    gap: 12px;
    color: white;
}

.docs-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.8rem 0 1rem;
    color: #818cf8;
    border-left: 3px solid #6366f1;
    padding-left: 15px;
}

.docs-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.2rem 0 0.8rem;
    color: #a5b4fc;
}

.docs-content p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
}

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

.docs-content a {
    color: #818cf8;
    text-decoration: none;
}

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

.docs-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #c084fc;
}

.docs-content pre {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

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

/* ===== КАРТОЧКИ ===== */
.info-card {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-card i {
    color: #818cf8;
    margin-right: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* ===== ТАБЛИЦЫ ===== */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

th {
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

/* ===== СОЦИАЛЬНЫЕ ССЫЛКИ ===== */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-right: 0.8rem;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    text-decoration: none;
}

/* ===== ФУТЕР ===== */
.footer {
    padding: 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.8);
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #818cf8;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ===== МОБИЛЬНЫЕ ЭЛЕМЕНТЫ ===== */
.mobile-menu-btn {
    display: none;
    width: 100%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn i {
    margin-right: 8px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
}

/* ===== АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ===== */
@media (max-width: 992px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 999;
        border-radius: 0;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .docs-sidebar.open {
        left: 0;
    }
    
    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(20, 20, 35, 0.95);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .sidebar-title {
        font-size: 1rem;
        font-weight: 600;
        color: white;
    }
    
    .close-sidebar {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
    }
    
    .desktop-only {
        display: none;
    }
    
    .docs-nav {
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .docs-content h1 {
        font-size: 1.5rem;
    }
    
    .docs-content h2 {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 0.6rem 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    th, td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .docs-content {
        padding: 1rem;
    }
    
    .docs-content h1 {
        font-size: 1.3rem;
    }
    
    .social-link {
        display: inline-block;
        margin: 0.3rem;
    }
}