/* Custom CSS for Evolution OpenAI Documentation */

/* Общие стили */
.rst-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Заголовки */
.rst-content h1 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.rst-content h2 {
    color: #34495e;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

.rst-content h3 {
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

/* Блоки кода */
.highlight {
    border-radius: 6px;
    border: 1px solid #e1e4e8;
    overflow: auto;
}

.highlight pre {
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

/* Inline код */
.rst-content code.literal {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    color: #24292e;
    font-size: 85%;
    padding: 2px 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Предупреждения и заметки */
.rst-content .admonition {
    border-radius: 6px;
    border-left: 4px solid;
    padding: 12px 16px;
    margin: 16px 0;
}

.rst-content .admonition.note {
    border-left-color: #3498db;
    background-color: #e3f2fd;
}

.rst-content .admonition.warning {
    border-left-color: #f39c12;
    background-color: #fff3cd;
}

.rst-content .admonition.important {
    border-left-color: #e74c3c;
    background-color: #f8d7da;
}

.rst-content .admonition.tip {
    border-left-color: #27ae60;
    background-color: #d4edda;
}

/* Таблицы */
.rst-content table.docutils {
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
    margin: 16px 0;
}

.rst-content table.docutils th,
.rst-content table.docutils td {
    border: 1px solid #e1e4e8;
    padding: 8px 12px;
    text-align: left;
}

.rst-content table.docutils th {
    background-color: #f6f8fa;
    font-weight: 600;
}

.rst-content table.docutils tr:nth-child(2n) {
    background-color: #f8f9fa;
}

/* Навигация */
.wy-nav-content {
    max-width: none;
}

.wy-nav-content-wrap {
    margin-left: 300px;
}

/* Мобильная адаптация */
@media screen and (max-width: 768px) {
    .wy-nav-content-wrap {
        margin-left: 0;
    }
}

/* Кастомные классы для примеров */
.example-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
}

.example-box h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 12px;
}

/* Улучшенная читаемость списков */
.rst-content ul li,
.rst-content ol li {
    margin-bottom: 8px;
}

/* API документация */
.rst-content dl.class,
.rst-content dl.function,
.rst-content dl.method {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin: 16px 0;
    padding: 16px;
    background-color: #f8f9fa;
}

.rst-content dl.class > dt,
.rst-content dl.function > dt,
.rst-content dl.method > dt {
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
}

/* Ссылки */
.rst-content a {
    color: #3498db;
    text-decoration: none;
}

.rst-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Улучшения для мобильных устройств */
@media screen and (max-width: 480px) {
    .rst-content {
        font-size: 16px;
    }
    
    .highlight pre {
        font-size: 12px;
        padding: 12px;
    }
    
    .rst-content table.docutils {
        font-size: 14px;
    }
    
    .rst-content table.docutils th,
    .rst-content table.docutils td {
        padding: 6px 8px;
    }
} 