/* Documentation-specific styles */

/* Hero Section */
.docs-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(19, 53, 150, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.docs-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a9c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Quick Navigation */
.quick-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 120px;
}

.quick-nav-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(19, 53, 150, 0.3);
}

.quick-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.quick-nav-item:hover i {
    color: white;
}

.quick-nav-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Table of Contents */
.toc-section {
    background-image: url('assets/banner20.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

.toc-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.toc-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.toc-column h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.toc-column ul {
    list-style: none;
}

.toc-column li {
    margin-bottom: 0.5rem;
}

.toc-column a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.toc-column a:hover {
    color: var(--text-color);
    border-left-color: var(--primary-color);
    background: rgba(19, 53, 150, 0.1);
}

/* Documentation Layout */
.docs-container {
    background: transparent;
    min-height: 100vh;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Sidebar */
.docs-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
    padding: 1.5rem;
}

.sidebar-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 0.3rem;
}

.sidebar-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-section a:hover {
    background: var(--primary-color);
    color: white;
}

/* Main Content */
.docs-content {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    overflow-x: auto;
}

/* Documentation Sections */
.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.docs-section h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.subsection {
    margin-bottom: 3rem;
}

.subsection h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.subsection h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.subsection h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

.subsection p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.subsection ul, .subsection ol {
    color: var(--text-muted);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.subsection li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-highlight {
    background: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-highlight:hover {
    transform: translateY(-5px);
}

.feature-highlight i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-highlight h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-highlight p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Notice Boxes */
.safety-notice, .warning-box, .info-box, .tip-box, .best-practice-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.safety-notice {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.best-practice-box {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.notice-icon, .safety-notice i, .warning-box i, .info-box i, .tip-box i, .best-practice-box i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.safety-notice i { color: #ef4444; }
.warning-box i { color: #f59e0b; }
.info-box i { color: #3b82f6; }
.tip-box i { color: #10b981; }
.best-practice-box i { color: #8b5cf6; }

.notice-content h3, .notice-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.notice-content p {
    margin-bottom: 0;
}

/* Step-by-Step Instructions */
.step-by-step {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--dark-accent);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Code Blocks */
.code-block {
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
    overflow: hidden;
}

.code-header {
    background: var(--dark-accent);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.code-header span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
}

.code-block pre {
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
}

/* Tables */
.requirements-table, .distribution-example {
    background: var(--dark-accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.requirement-item:last-child {
    border-bottom: none;
}

.requirement-item strong {
    color: var(--text-color);
    min-width: 150px;
}

.requirement-item span {
    color: var(--text-muted);
}

/* Interface Overview */
.interface-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.interface-tab {
    background: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.interface-tab:hover {
    transform: translateY(-3px);
}

.interface-tab i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.interface-tab h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.interface-tab p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Distribution Examples */
.distribution-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.wallet-type {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.wallet-type h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.amount {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.total {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Use Cases */
.use-case-grid, .strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case, .strategy {
    background: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.use-case h4, .strategy h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.use-case p, .strategy ul {
    color: var(--text-muted);
}

/* File Management Features */
.file-management-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Settings Workflow */
.settings-workflow {
    background: var(--dark-accent);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.settings-workflow h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.settings-workflow ol {
    color: var(--text-muted);
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.settings-workflow li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Recommendation Box */
.recommendation-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

.recommendation-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-box ul {
    margin-left: 1rem;
}

.recommendation-box li {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* Mixing Configuration */
.mixing-config {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.config-item:last-child {
    border-bottom: none;
}

.config-item span {
    color: var(--text-muted);
}

.config-item strong {
    color: var(--primary-color);
}

/* Feature Lists */
.feature-list {
    background: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.feature-list li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-list strong {
    color: var(--text-color);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(19, 53, 150, 0.2);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.1s ease;
    width: 0%;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 53, 150, 0.3);
}

.back-to-top a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 53, 150, 0.4);
}

/* Footer Styles */
footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-disclaimer p {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
    
    .docs-sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    
    .docs-content {
        padding: 2rem;
    }
    
    .quick-nav {
        gap: 1rem;
    }
    
    .quick-nav-item {
        min-width: 100px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .docs-hero {
        padding: 100px 0 60px;
    }
    
    .docs-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-layout {
        grid-template-columns: 200px 1fr;
        gap: 1rem;
    }
    
    .docs-sidebar {
        padding: 1rem;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .distribution-example {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .docs-hero h1 {
        font-size: 2rem;
    }
    
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-nav-item {
        width: 100%;
        max-width: 200px;
    }
    
    .docs-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .docs-sidebar {
        position: static;
        order: -1;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .docs-content {
        padding: 1rem;
    }
} 