/* WishBot Help Center Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Help Center Styles */
.help-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.help-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Search Enhancement */
.search-highlight {
    background: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Article Content Enhancements */
.help-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: var(--shadow-md);
}

.help-article video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* Table Styles for Help Content */
.help-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.help-article th,
.help-article td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.help-article th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.help-article td {
    color: var(--text-secondary);
}

.help-article tr:last-child td {
    border-bottom: none;
}

/* Enhanced Info Boxes */
.help-tip {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.help-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.help-success {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Step-by-step Guide */
.step-guide {
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 32px;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Video Embedding */
.help-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 24px 0;
}

.help-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .help-content {
        padding: 0 16px;
    }
    
    .step-item {
        padding-left: 50px;
    }
    
    .step-item::before {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .breadcrumb,
    .sidebar,
    .feedback-section {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
        max-width: none;
        grid-template-columns: 1fr;
    }
    
    .article-content {
        box-shadow: none;
        border: none;
    }
}