/* Help Center Page Styles */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-lighter: #f5f7ff;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Main Container */
.help-page {
    margin-left: 56px;
    min-height: 100vh;
    background: var(--background);
}

.help-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Page Header */
.help-page-header {
    margin-bottom: 32px;
}

.help-page-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.help-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-link-icon {
    font-size: 1.1rem;
}

/* Help Sections */
.help-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.help-section h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 22px;
}

.section-description {
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    font-size: 0.95rem;
}

/* Getting Started Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.guide-card {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.guide-step {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.guide-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Feature Accordion */
.feature-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--background);
}

.feature-header {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feature-header:hover {
    background: var(--border-light);
}

.feature-icon {
    font-size: 1.3rem;
}

.feature-title {
    flex: 1;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.feature-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.feature-item.active .feature-arrow {
    transform: rotate(180deg);
}

.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-item.active .feature-content {
    max-height: 600px;
    padding: 0 20px 20px;
}

.feature-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.feature-content li {
    margin-bottom: 8px;
}

/* FAQ Styles */
.faq-category {
    margin-bottom: 24px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--background);
}

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

.faq-question:hover {
    background-color: var(--border-light);
}

.faq-question .arrow {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    padding: 0 16px 16px;
    max-height: 400px;
}

/* Troubleshooting Grid */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.trouble-card {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 20px;
}

.trouble-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.trouble-card ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.trouble-card li {
    margin-bottom: 6px;
}

/* Keyboard Shortcuts */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.shortcut-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--background);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shortcut-keys kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shortcut-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 16px 0;
}

.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.contact-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Ticket Modal */
.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.ticket-modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ticket-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.ticket-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.ticket-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.ticket-modal-close:hover {
    color: var(--text-main);
}

.ticket-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--background);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-primary {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-page {
        margin-left: 0;
    }
    
    .help-container {
        padding: 20px 16px;
    }
    
    .help-page-header h1 {
        font-size: 28px;
    }
    
    .quick-links {
        flex-direction: column;
    }
    
    .guide-grid,
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
body.dark-mode .help-page {
    background: #0f172a;
}

body.dark-mode .help-section {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .help-page-header h1,
body.dark-mode .guide-card h3,
body.dark-mode .trouble-card h3,
body.dark-mode .contact-card h3,
body.dark-mode .feature-title,
body.dark-mode .faq-question {
    color: #f1f5f9;
}

body.dark-mode .help-subtitle,
body.dark-mode .section-description,
body.dark-mode .guide-card p,
body.dark-mode .feature-content,
body.dark-mode .faq-answer,
body.dark-mode .trouble-card ol,
body.dark-mode .contact-card p,
body.dark-mode .shortcut-desc {
    color: #94a3b8;
}

body.dark-mode .quick-link-card,
body.dark-mode .guide-card,
body.dark-mode .feature-item,
body.dark-mode .faq-item,
body.dark-mode .trouble-card,
body.dark-mode .shortcut-item,
body.dark-mode .contact-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .quick-link-card {
    color: #f1f5f9;
}

body.dark-mode .quick-link-card:hover {
    background: #334155;
    border-color: var(--primary);
}

body.dark-mode .shortcut-keys kbd {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .ticket-modal-content {
    background: #1e293b;
}

body.dark-mode .ticket-modal-header {
    border-color: #334155;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .btn-secondary {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}
