/* ==========================================================================
   Help Center Styles
   ========================================================================== */

.help-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Sidebar Navigation */
.help-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.help-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.help-nav li {
    margin-bottom: 0.5rem;
}

.help-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.help-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}

.help-nav a.active {
    background: var(--accent);
    color: white;
}

.help-nav-sub {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.help-nav-sub a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Main Content Area */
.help-content {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    min-height: 70vh;
}

.help-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.help-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.help-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.help-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Help Cards (for main help page) */
.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.help-card {
    background: var(--bg-elevated-subtle);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.help-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.help-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.help-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.help-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Popular Topics */
.popular-topics {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.popular-topics h3 {
    margin-top: 0;
    color: var(--accent-strong);
}

.popular-topics ul {
    margin: 0;
    padding-left: 1.5rem;
}

.popular-topics li {
    margin-bottom: 0.5rem;
}

.popular-topics a {
    color: var(--accent-strong);
    font-weight: 500;
}

/* Code Examples */
.help-content pre {
    background: var(--bg-elevated-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.help-content code {
    background: var(--bg-elevated-subtle);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.help-content pre code {
    background: none;
    padding: 0;
}

/* Tables */
.help-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-elevated);
}

.help-content th,
.help-content td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.help-content th {
    background: var(--bg-elevated-subtle);
    font-weight: 600;
    color: var(--text-main);
}

.help-content td {
    color: var(--text-muted);
}

/* Info Boxes */
.info-box {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: rgba(234, 88, 12, 0.1);
    border-left-color: var(--warning);
}

.info-box.success {
    background: rgba(22, 163, 74, 0.1);
    border-left-color: var(--success);
}

.info-box.danger {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--danger);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Breadcrumbs */
.help-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.help-breadcrumbs a {
    color: var(--accent);
}

.help-breadcrumbs span {
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-item {
    background: var(--bg-elevated-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--accent-soft);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Version History */
.version-item {
    background: var(--bg-elevated-subtle);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.version-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.version-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.version-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.version-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Search Box */
.help-search {
    margin-bottom: 2rem;
}

.help-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-elevated);
    color: var(--text-main);
    transition: border-color 0.2s ease;
}

.help-search input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Support Contact */
.help-support {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.help-support h3 {
    color: white;
    margin-top: 0;
}

.help-support p {
    color: rgba(255, 255, 255, 0.9);
}

.help-support a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .help-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .help-sidebar {
        position: static;
    }
    
    .help-content {
        padding: 2rem 1.5rem;
    }
    
    .help-content h1 {
        font-size: 2rem;
    }
    
    .help-cards {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .help-sidebar,
    .help-support,
    .site-header,
    .site-footer {
        display: none;
    }
    
    .help-container {
        grid-template-columns: 1fr;
    }
    
    .help-content {
        box-shadow: none;
        padding: 0;
    }
}
