/* Кастомные стили для документации ИКОН */

/* Улучшенная типографика для русского текста */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Подсветка важных блоков */
.admonition {
    margin: 1.5em 0;
    padding: 1em;
    border-radius: 0.5em;
}

/* Улучшенные код-блоки */
pre {
    border-radius: 0.5em;
    padding: 1em;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 0.375em;
    background-color: #3B82F6;
    color: white;
    text-decoration: none;
}

.btn:hover {
    background-color: #2563EB;
}

/* Карточки для главной страницы */
.card {
    padding: 1.5em;
    border: 1px solid #E5E7EB;
    border-radius: 0.5em;
    margin-bottom: 1em;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

/* Темная тема */
[data-theme="dark"] .card {
    border-color: #374151;
    background-color: #1F2937;
}

[data-theme="dark"] .card:hover {
    border-color: #60A5FA;
}

/* ========== Ссылка на главный сайт в footer ========== */
.footer-branding {
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--color-sidebar-background-border);
}

.footer-branding a {
    color: var(--color-brand-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-branding a:hover {
    text-decoration: underline;
}

.footer-branding::before {
    content: "← ";
}

/* Дополнительный стиль для подвала */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* ========== Announcement баннер (ссылка на главную) ========== */
.announcement {
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    border: none !important;
    font-size: 0.95rem !important;
}

.announcement a.home-link {
    color: white !important;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.announcement a.home-link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

/* Темная тема для announcement */
[data-theme="dark"] .announcement {
    background: linear-gradient(90deg, #1E40AF 0%, #1E3A8A 100%) !important;
}
