/* Documentation page styles for mobile */
.docs-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    margin: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

/* Боковая навигация на мобильных */
.docs-sidebar {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    order: -1;
    max-height: none;
    overflow: visible;
}

.docs-nav-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.docs-nav-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.docs-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.docs-nav-item {
    margin: 0;
    flex-shrink: 0;
}

.docs-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    min-width: 80px;
    text-align: center;
    font-size: 0.8rem;
}

.docs-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.docs-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-bottom-color: white;
    font-weight: 600;
}

.docs-nav-link i {
    margin-right: 0;
    margin-bottom: 0.25rem;
    width: auto;
    text-align: center;
    font-size: 1rem;
}

/* Основной контент */
.docs-content {
    flex: 1;
    overflow-y: visible;
    max-height: none;
}

.docs-content-inner {
    padding: 1.5rem 1rem;
}

.docs-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.docs-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.docs-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.docs-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.docs-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.5;
    padding: 0 0.5rem;
}

/* Блоки контента */
.docs-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.block-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    align-self: center;
}

.block-icon i {
    font-size: 1.2rem;
    color: white;
}

.block-content {
    text-align: center;
}

.block-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
}

.block-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    text-align: left;
}

.block-content ul, .block-content ol {
    text-align: left;
    margin-left: 1rem;
    color: #555;
}

.block-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Сетка возможностей */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #667eea;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card > p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.4rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.feature-list li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.2rem;
    color: #667eea;
    margin-right: 1rem;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Код блоки */
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Футер */
.docs-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    color: #7f8c8d;
    font-size: 0.8rem;
}

.docs-footer p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* Скролл для горизонтальной навигации */
.docs-nav-menu::-webkit-scrollbar {
    height: 4px;
}

.docs-nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.docs-nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .docs-content-inner {
        padding: 1rem 0.8rem;
    }
    
    .docs-title {
        font-size: 1.5rem;
    }
    
    .docs-subtitle {
        font-size: 0.9rem;
    }
    
    .docs-block {
        padding: 1rem;
    }
    
    .block-icon {
        width: 45px;
        height: 45px;
    }
    
    .block-icon i {
        font-size: 1.1rem;
    }
    
    .block-content h2 {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .docs-nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.75rem;
        min-width: 70px;
    }
}
