/* Documentation Styles */
.docs-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.docs-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.docs-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.docs-content {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.docs-content .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-sidebar h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.docs-nav {
    list-style: none;
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

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

.docs-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.docs-nav a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    background: var(--bg-secondary);
    border-radius: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-dropdown.active .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.5rem 1rem 0.5rem 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.docs-main {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.docs-section {
    margin-bottom: 4rem;
}

.docs-section:last-child {
    margin-bottom: 0;
}

.docs-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.docs-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.docs-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.docs-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.docs-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.docs-section pre {
    background: var(--bg-dark);
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.docs-section code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
}

.docs-section pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.exchange-doc {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.exchange-doc h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.exchange-doc p {
    margin-bottom: 0.5rem;
}

.exchange-doc code {
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
}

.exchange-guide {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.exchange-guide h3 {
    margin-top: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exchange-guide ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.exchange-guide ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.exchange-guide ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.exchange-guide ul li {
    margin-bottom: 0.5rem;
}

.exchange-guide a {
    color: var(--primary-color);
    text-decoration: none;
}

.exchange-guide a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

.troubleshooting-list {
    margin-top: 2rem;
}

.troubleshooting-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.troubleshooting-list ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.error-category-summary {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.error-category-summary h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-category-summary h4 i {
    color: var(--primary-color);
}

.error-category-summary p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.error-category-summary ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.error-category-summary li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.error-category-summary strong {
    color: var(--text-primary);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.telegram-example {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.telegram-example pre {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.telegram-example code {
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--text-primary);
}

@media (max-width: 968px) {
    .docs-content .container {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .docs-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .docs-nav li {
        margin-bottom: 0;
    }

    .docs-nav a {
        padding: 0.5rem 1rem;
    }
}

