/* ======================
   Documentation Styles
   ====================== */

.docs-layout {
    display: flex;
    min-height: calc(100vh - 5rem);
    margin-top: 5rem;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    left: 0;
    top: 5rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: #f9fafb;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

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

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f9fafb;
    color: #0ea5e9;
}

.nav-link.active {
    background: #eff6ff;
    color: #0ea5e9;
    border-left-color: #0ea5e9;
    font-weight: 600;
}

.nav-link i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Main Content */
.docs-content {
    flex: 1;
    margin-left: 280px;
    background: #f9fafb;
    min-height: calc(100vh - 5rem);
}

.docs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #0ea5e9;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    width: 16px;
    height: 16px;
}

.sidebar-toggle {
    display: none;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #374151;
}

/* Article Content */
.docs-article {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.docs-article h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
}

.docs-article .lead {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.docs-article h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.docs-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #374151;
}

.docs-article h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.docs-article p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: #4b5563;
}

.docs-article ul,
.docs-article ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.docs-article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #4b5563;
}

.docs-article code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.875em;
    color: #d946ef;
}

.docs-article pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.docs-article pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

.docs-article blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}

.docs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.docs-article table th,
.docs-article table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.docs-article table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.docs-article a {
    color: #0ea5e9;
    text-decoration: none;
}

.docs-article a:hover {
    text-decoration: underline;
}

/* Hero Cards */
.docs-hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.hero-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-card-icon i {
    width: 32px;
    height: 32px;
}

.hero-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.hero-card p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Section Cards */
.docs-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.docs-section-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.docs-section-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.section-icon i {
    width: 24px;
    height: 24px;
}

.docs-section-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.docs-section-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.docs-section-card h3 a:hover {
    color: #0ea5e9;
}

.section-links {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.section-links li {
    margin-bottom: 0.5rem;
}

.section-links a {
    color: #0ea5e9;
    font-size: 0.875rem;
    text-decoration: none;
}

.section-links a:hover {
    text-decoration: underline;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: white;
    border-color: #0ea5e9;
    transform: translateX(4px);
}

.quick-link i {
    width: 32px;
    height: 32px;
    color: #0ea5e9;
    flex-shrink: 0;
}

.quick-link strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.quick-link span {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Footer Note */
.docs-footer-note {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #eff6ff;
    border-left: 4px solid #0ea5e9;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

.note-icon {
    flex-shrink: 0;
}

.note-icon i {
    width: 24px;
    height: 24px;
    color: #0ea5e9;
}

.docs-footer-note strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.docs-footer-note p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9375rem;
}

/* Code Blocks */
.code-block {
    position: relative;
    margin: 1.5rem 0;
}

.code-block-header {
    background: #374151;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.code-block-header .code-title {
    font-weight: 600;
}

.code-block pre {
    margin: 0;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: #eff6ff;
    border-color: #0ea5e9;
    color: #1e40af;
}

.callout-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.callout-success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.callout-danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
    }
    
    .docs-sidebar.open {
        transform: translateX(0);
    }
    
    .docs-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-close {
        display: block;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: 1rem;
    }
    
    .docs-article {
        padding: 2rem 1.5rem;
    }
    
    .docs-article h1 {
        font-size: 2rem;
    }
    
    .docs-hero-cards,
    .docs-sections {
        grid-template-columns: 1fr;
    }
}

