/* Documentation Styles */
.documentation {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    z-index: 1;
}

.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    padding-bottom: 60px;
}

/* Sidebar Styles */
.docs-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}

.sidebar-nav {
    padding: 20px;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section h4 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

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

.nav-section li {
    margin-bottom: 5px;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Main Content */
.docs-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 40px;
    min-height: 600px;
}

.doc-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.doc-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-section h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-section h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.doc-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.doc-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* Info Boxes */
.info-box, .warning-box, .success-box, .tip-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tip-box {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.info-box i { color: #3b82f6; }
.warning-box i { color: #f59e0b; }
.success-box i { color: #22c55e; }
.tip-box i { color: #a855f7; }

/* Code Blocks */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block code {
    color: #22c55e;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Lists */
.feature-list, .steps-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-list i {
    color: #22c55e;
}

.steps-list {
    counter-reset: step-counter;
    padding-left: 20px;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    margin-bottom: 15px;
    padding-left: 40px;
    color: var(--text-secondary);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Video Container */
.video-container {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    transform: scale(1.02);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.video-placeholder p {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}

/* Permission Grid */
.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.permission-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.permission-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Command Documentation */
.command-doc {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Issue Items */
.issue-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.issue-item h3 {
    color: #ef4444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.issue-item ul {
    margin-left: 20px;
    color: var(--text-secondary);
}

.issue-item li {
    margin-bottom: 8px;
}

/* Scrollbar Styles */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }

    .docs-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .doc-section h1 {
        font-size: 2rem;
    }

    .doc-section h2 {
        font-size: 1.5rem;
    }

    .permission-grid {
        grid-template-columns: 1fr;
    }

    .video-placeholder {
        padding: 40px;
    }

    .video-placeholder i {
        font-size: 3rem;
    }
}