/* ============================================================
   DOCUMENTATION PAGE — Стиль как у плагина
   ============================================================ */

.docs-page {
    padding-top: 80px;
    background: #f8fafc;
    min-height: 100vh;
}

.docs-container {
    display: flex;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 30px auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #ebebef;
    min-height: 500px;
}

/* ---------- ЛЕВАЯ КОЛОНКА (МЕНЮ) ---------- */
.docs-sidebar {
    flex: 0 0 280px;
    border-right: 1px solid #ebebef;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.docs-sidebar-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #ebebef;
    margin-bottom: 1rem;
}

.docs-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

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

.docs-menu li {
    margin-bottom: 0.2rem;
}

.docs-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: #555566;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.docs-menu li a:hover {
    background: #f5f3ff;
    color: #6c5ce7;
}

.docs-menu li a.active {
    color: #6c5ce7;
    font-weight: 500;
    background: #f5f3ff;
}

.docs-menu li a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

.docs-menu .menu-divider {
    height: 1px;
    background: #ebebef;
    margin: 8px 0;
}

/* ---------- ПРАВАЯ КОЛОНКА (КОНТЕНТ) ---------- */
.docs-content {
    flex: 1;
    max-width: 900px;
    min-width: 0;
}

.docs-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid #ebebef;
    padding-bottom: 10px;
}

.docs-content-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.docs-content-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-content-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-content-body p {
    margin-bottom: 0.5rem;
}

.docs-content-body ul,
.docs-content-body ol {
    margin: 0.8rem 0 1.2rem 1.5rem;
    padding-left: 0.5rem;
}

.docs-content-body ul li,
.docs-content-body ol li {
    margin-bottom: 0.2rem;
}

.docs-content-body code {
    background: #f1f1f1;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: #6c5ce7;
}

.docs-content-body pre {
    background: #1a1a2e;
    color: #e5e5e5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-content-body pre code {
    color: #e5e5e5;
    background: transparent;
}

.docs-content-body .tip-block {
    background: #f8fafc;
    border-left: 4px solid #6c5ce7;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-content-body .tip-block strong {
    color: #6c5ce7;
}

.docs-content-body .warning-block {
    background: #fff8f0;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.docs-content-body .warning-block strong {
    color: #b45309;
}

/* ============================================================
   ИКОНКИ ВНИЗУ МЕНЮ — ИСПРАВЛЕНИЕ
   ============================================================ */

.docs-footer-icons .footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f3ff;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #6c5ce7;
}

.docs-footer-icons .footer-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Все иконки — фиолетовые, при наведении — белые */
.docs-footer-icons .footer-icon svg path {
    fill: #6c5ce7;
    transition: fill 0.25s ease;
}

.docs-footer-icons .footer-icon:hover {
    background: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.25);
}

.docs-footer-icons .footer-icon:hover svg path {
    fill: #ffffff !important;
}

/* Для иконки GitHub (у неё fill=currentColor) */
.docs-footer-icons .footer-icon:hover svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* ---------- АДАПТАЦИЯ ---------- */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .docs-sidebar {
        flex: none;
        width: 100%;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ebebef;
        padding-bottom: 1rem;
    }

    .docs-content h1 {
        font-size: 1.4rem;
    }

    .docs-content-body h2 {
        font-size: 1.2rem;
    }
}