/* Root Variables */
:root {
    --primary-purple: #9B8BFF;
    --dark-purple: #7C3AED;
    --light-purple: #C4B5FD;
    --bg-dark: #0f0f0f;
    --bg-darker: #0a0a0a;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Main Container */
.docs-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.nav-section-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chevron {
    transition: transform 0.2s;
    opacity: 0.6;
}

.nav-section-header.active .chevron {
    transform: rotate(180deg);
}

.nav-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-section-content.active {
    max-height: 500px;
}

.nav-link {
    display: block;
    padding: 8px 20px 8px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--primary-purple);
    background-color: rgba(155, 139, 255, 0.1);
    border-left-color: var(--primary-purple);
}

.nav-link.standalone {
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 60px 80px;
    max-width: 1200px;
    width: 100%;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Links */
a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--light-purple);
}

.link-purple {
    color: var(--primary-purple);
    font-weight: 500;
}

.link-purple:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 8px;
}

li strong {
    color: var(--text-primary);
}

/* Code */
code {
    background-color: rgba(155, 139, 255, 0.1);
    color: var(--primary-purple);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid #3B82F6;
    border-radius: 8px;
    margin: 24px 0;
}

.info-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: #60A5FA;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content p::after,
.tip-content p::after {
    content: none !important;
}

/* Tip Box */
.tip-box {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(74, 222, 128, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid #22C55E;
    border-radius: 8px;
    margin: 24px 0;
}

.tip-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content strong {
    display: block;
    color: #4ADE80;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tip-content p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.tip-content p:last-child {
    margin-bottom: 0;
}

/* Image Container */
.image-container {
    margin: 24px 0;
    text-align: center;
}

.image-container-small {
    margin: 24px 0;
    text-align: left;
    max-width: 600px;
}

.doc-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Recommended Values */
.recommended {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
    margin-left: 24px;
}

.recommended code {
    background-color: rgba(155, 139, 255, 0.15);
    color: var(--primary-purple);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.nav-button {
    flex: 1;
    max-width: 48%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.nav-button:hover {
    background: rgba(155, 139, 255, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.nav-button.nav-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-button.nav-prev {
    text-align: left;
}

.nav-button.nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-purple);
}

/* Video Embed */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* FAQ Items */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.faq-item h3 {
    color: var(--primary-purple);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Troubleshoot Items */
.troubleshoot-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-purple);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.troubleshoot-item p {
    margin-bottom: 12px;
}

.troubleshoot-item ul {
    margin-bottom: 0;
}

/* Video Container */
.video-container {
    margin: 24px 0;
}

.video-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s;
}

.video-placeholder:hover {
    border-color: var(--primary-purple);
    background: rgba(155, 139, 255, 0.05);
}

.play-icon {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 16px;
}

.video-placeholder p {
    margin-bottom: 8px;
}

.video-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px 40px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 30px 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .info-box,
    .tip-box {
        flex-direction: column;
        gap: 12px;
    }

    .page-navigation {
        flex-direction: column;
    }

    .nav-button {
        max-width: 100%;
    }

    .nav-button.nav-next {
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-purple);
    color: var(--text-primary);
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

