/* Help Page Specific Styles */

.help-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 100px;
    min-height: 100vh;
}

/* Sidebar */
.help-sidebar {
    width: 300px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 2rem;
    border-right: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Sidebar Navigation */
.help-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.nav-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-link.active {
    background: var(--primary);
    color: black;
    font-weight: 600;
}

/* Main Content */
.help-content {
    flex: 1;
    padding: 2rem 4rem;
    max-width: 1000px;
    color: var(--text-main);
    min-height: 100vh;
}

.breadcrumb {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.help-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.help-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.8;
}

/* Documentation Sections */
.doc-section {
    margin-bottom: 6rem;
}

.section-header {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

/* Feature Documentation Cards */
.feature-doc {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.feature-doc h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doc-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary), #ff6b00);
    color: black;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.doc-overview,
.doc-steps,
.doc-tips,
.doc-faq {
    margin-bottom: 2.5rem;
}

.doc-overview h4,
.doc-steps h4,
.doc-tips h4,
.doc-faq h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.doc-overview p,
.doc-steps p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Ordered and Unordered Lists */
.doc-steps ol,
.doc-tips ul {
    margin-left: 1.5rem;
    line-height: 2;
}

.doc-steps ol {
    counter-reset: step-counter;
    list-style: none;
}

.doc-steps ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.doc-steps ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.doc-steps ol li strong {
    color: var(--text-main);
}

.doc-steps ol li ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    list-style: disc;
}

.doc-tips ul li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.doc-faq details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.doc-faq details:hover {
    border-color: var(--primary);
}

.doc-faq summary {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-faq summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.doc-faq details[open] summary::after {
    content: '−';
}

.doc-faq details p {
    margin-top: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Visual Guides */
.doc-visual {
    margin-bottom: 2.5rem;
}

.doc-visual h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Device Frame Wrapper for Premium Look */
.doc-visual .device-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    border: 4px solid #333;
    display: inline-block;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    max-width: 100%;
}

.help-screenshot {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    transition: transform 0.3s ease;
}

.help-screenshot:hover {
    transform: scale(1.01);
}

/* Search Highlighting */
.highlight {
    background: var(--primary);
    color: black;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.feature-doc.hidden {
    display: none;
}

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

    .help-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 1.5rem;
    }

    .help-content {
        padding: 1.5rem;
    }

    .help-content h1 {
        font-size: 2.5rem;
    }

    .section-header {
        font-size: 2rem;
    }

    .feature-doc {
        padding: 1.5rem;
    }

    .feature-doc h3 {
        font-size: 1.5rem;
    }
}

/* Active Navigation Highlight */
nav a.active {
    color: var(--primary);
    font-weight: 700;
}