/* ===================================
   HELP CENTRE STYLES
   =================================== */

/* Help Content Container */
.help-content {
    padding: 3rem 0 5rem;
    background: #f8f9fa;
}

/* Search Bar */
.help-search {
    margin-bottom: 2rem;
    position: relative;
}

.search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.search-result-snippet {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.search-result-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #667eea;
    background: #eef0ff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Tab Navigation */
.help-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.help-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.help-tab:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.help-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.tab-intro h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.tab-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Help Categories */
.help-category {
    margin-bottom: 3rem;
}

.help-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
}

/* Help Articles */
.help-articles {
    display: grid;
    gap: 1.5rem;
}

.help-article {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.help-article:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.help-article h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.help-article > p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #5568d3;
    transform: translateX(4px);
}

.article-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    text-align: left;
}

.article-content.hidden {
    display: none;
}

.article-content h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-content ol,
.article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.article-content strong {
    color: #333;
}

.article-content a {
    color: #667eea;
    text-decoration: underline;
}

.article-content a:hover {
    color: #5568d3;
}

/* Category Grid (for How-To Guides, Admin Guides) */
.help-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

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

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.category-topics {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    text-align: left;
    flex-grow: 1;
}

.category-topics li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.category-topics li:last-child {
    border-bottom: none;
}

.category-topics li::before {
    content: "→ ";
    color: #667eea;
    margin-right: 0.5rem;
}

.expand-category {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.expand-category:hover {
    background: #5568d3;
}

/* FAQ Styles */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
}

.faq-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    color: #667eea;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #555;
}

.faq-answer strong {
    color: #333;
}

.faq-answer a {
    color: #667eea;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #5568d3;
}

/* Troubleshooting Styles */
.troubleshooting-category {
    margin-bottom: 3rem;
}

.troubleshooting-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.trouble-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.trouble-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.trouble-item p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #555;
}

.trouble-item ul {
    margin-left: 1.5rem;
}

.trouble-item li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #666;
    font-size: 0.95rem;
}

.trouble-item a {
    color: #667eea;
    text-decoration: underline;
}

/* Help Footer */
.help-footer {
    background: linear-gradient(135deg, #4F9EE8 0%, #3B82C4 100%);
    padding: 3rem 0;
    margin-top: 4rem;
    border-radius: 16px;
}

.help-footer-content {
    text-align: center;
    color: white;
}

.help-footer-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: white;
}

.help-footer-content > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.help-footer-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.help-footer-actions .btn-primary,
.help-footer-actions .btn-secondary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-footer-actions .btn-primary {
    background: white;
    color: #667eea;
    border: 2px solid white;
}

.help-footer-actions .btn-primary:hover {
    background: transparent;
    color: white;
}

.help-footer-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.help-footer-actions .btn-secondary:hover {
    background: white;
    color: #667eea;
}

.help-footer-note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-hero h1 {
        font-size: 2rem;
    }

    .help-hero p {
        font-size: 1rem;
    }

    .help-tabs {
        gap: 0.25rem;
    }

    .help-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .tab-intro h2 {
        font-size: 1.6rem;
    }

    .tab-intro p {
        font-size: 1rem;
    }

    .help-category h3 {
        font-size: 1.3rem;
    }

    .help-category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .help-footer-content h2 {
        font-size: 1.6rem;
    }

    .help-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .help-footer-actions .btn-primary,
    .help-footer-actions .btn-secondary {
        width: 100%;
    }

    .search-wrapper {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .help-content {
        padding: 2rem 0 3rem;
    }

    .help-article {
        padding: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .help-footer {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
}
