/* Documentation Page Styles */

.docs-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    position: relative;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: var(--explorer-blue);
    background: rgba(59, 130, 246, 0.05);
    border-left-color: var(--explorer-blue);
}

.nav-link.active {
    color: var(--explorer-blue);
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--explorer-blue);
    font-weight: 600;
}

.nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    margin-left: 1.5rem;
}

.nav-sublist .nav-link {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.nav-sublist .nav-link:hover,
.nav-sublist .nav-link.active {
    color: var(--explorer-blue);
}

/* Main Content */
.docs-main {
    flex: 1;
    background: var(--bg-primary);
    overflow-x: hidden;
}

.docs-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.docs-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    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 .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.docs-section ul,
.docs-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.docs-section li {
    margin-bottom: 0.5rem;
}

.docs-section a {
    color: var(--explorer-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-section a:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

/* Feature Boxes */
.feature-box {
    background: linear-gradient(to bottom, rgba(42, 45, 53, 0.5) 0%, rgba(26, 29, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--explorer-blue);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.feature-box .subtitle {
    font-size: 1.125rem;
    color: var(--explorer-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--explorer-blue);
    border-radius: 0.5rem;
    color: var(--text-secondary);
}

.feature-item strong {
    color: var(--text-primary);
}

/* Checklist */
.checklist {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.check-item {
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    border-radius: 0.5rem;
    color: var(--text-secondary);
}

/* Reward Box */
.reward-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.reward-box h4 {
    color: var(--explorer-blue);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.reward-box h4:first-child {
    margin-top: 0;
}

.reward-box ul {
    margin-bottom: 0;
}

/* Comparison Tables */
.comparison-box {
    margin: 2rem 0;
}

.comparison-table {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

.comparison-table thead {
    background: var(--bg-tertiary);
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.advantages {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0.75rem;
    border-left: 4px solid var(--explorer-blue);
}

.advantages h4 {
    color: var(--explorer-blue);
    margin-top: 0;
}

.advantages ul {
    margin-bottom: 0;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-card {
    background: linear-gradient(to bottom, rgba(42, 45, 53, 0.5) 0%, rgba(26, 29, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--explorer-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.tech-card h3 {
    color: var(--explorer-blue);
    margin-top: 0;
    font-size: 1.25rem;
}

.tech-card ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.tech-card li {
    margin-bottom: 0.5rem;
}

/* Roadmap Boxes */
.roadmap-box {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(42, 45, 53, 0.5) 0%, rgba(26, 29, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    border-left: 4px solid var(--explorer-blue);
}

.roadmap-item {
    margin: 1.5rem 0;
}

.roadmap-item h4 {
    color: var(--explorer-blue);
    margin-top: 0;
}

.roadmap-item ul {
    margin-bottom: 0;
}

/* Economic Boxes */
.economic-box {
    background: linear-gradient(to bottom, rgba(42, 45, 53, 0.5) 0%, rgba(26, 29, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.economic-box h3 {
    color: var(--explorer-blue);
    margin-top: 0;
}

.economic-box h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.example-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.example-box h4 {
    color: var(--explorer-blue);
    margin-top: 0;
}

/* Security Boxes */
.security-box {
    background: linear-gradient(to bottom, rgba(42, 45, 53, 0.5) 0%, rgba(26, 29, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.security-box h3 {
    color: var(--explorer-blue);
    margin-top: 0;
}

/* Getting Started Boxes */
.getting-started-box {
    background: linear-gradient(to bottom, rgba(42, 45, 53, 0.5) 0%, rgba(26, 29, 36, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.getting-started-box h3 {
    color: var(--explorer-blue);
    margin-top: 0;
}

.code-block {
    margin: 1.5rem 0;
}

.code-block h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.code-block pre {
    background: #0f1419;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Links List */
.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.links-list li:last-child {
    border-bottom: none;
}

/* Philosophy */
.philosophy-footer {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
}

.status-badge {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge span {
    color: var(--explorer-blue);
    font-weight: 600;
}

.made-with {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-sidebar {
        position: fixed;
        left: -280px;
        top: 80px;
        height: calc(100vh - 80px);
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .docs-sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .docs-main {
        width: 100%;
    }

    .docs-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 1.5rem 1rem;
    }

    .docs-section h1 {
        font-size: 2rem;
    }

    .docs-section h2 {
        font-size: 1.75rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .feature-box,
    .economic-box,
    .security-box,
    .getting-started-box {
        padding: 1.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--explorer-blue);
}

/* Active Section Highlighting */
.docs-section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background: rgba(59, 130, 246, 0.2);
    }
    100% {
        background: transparent;
    }
}





