/**
 * Help Center Styles - RenoCanvas
 * 
 * CSS Prefix: hlp-
 * 
 * Sections:
 * - Hero with Search
 * - Quick Start Guides (3-column grid)
 * - Browse by Category (3-column grid)
 * - Common Questions (FAQ accordion)
 * - Support CTA
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Primary Colors */
    --hlp-primary: #4c75d2;
    --hlp-primary-hover: #4469bd;
    --hlp-primary-light: rgba(76, 117, 210, 0.1);
    
    /* Accent Colors */
    --hlp-green: #10B981;
    --hlp-green-light: rgba(16, 185, 129, 0.1);
    --hlp-orange: #F59E0B;
    --hlp-orange-light: rgba(245, 158, 11, 0.1);
    --hlp-red: #EF4444;
    --hlp-red-light: rgba(239, 68, 68, 0.1);
    --hlp-purple: #8B5CF6;
    --hlp-purple-light: rgba(139, 92, 246, 0.1);
    --hlp-cyan: #06B6D4;
    --hlp-cyan-light: rgba(6, 182, 212, 0.1);
    
    /* Background Colors */
    --hlp-bg: #FCFAF7;
    --hlp-bg-alt: #FFFFFF;
    --hlp-beige: #F5EDE0;
    --hlp-sand: #D9CBBE;
    
    /* Text Colors */
    --hlp-text-dark: #2D2D2D;
    --hlp-text-muted: #5D5D5D;
    
    /* Spacing */
    --hlp-section-padding: 4rem;
    --hlp-container-max: 56rem;
    --hlp-container-wide: 72rem;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.hlp-page {
    min-height: 100vh;
    background-color: var(--hlp-bg);
    display: flex;
    flex-direction: column;
}

.hlp-page main {
    flex: 1;
}

/* ==========================================================================
   Container
   ========================================================================== */

.hlp-container {
    max-width: var(--hlp-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.hlp-container--wide {
    max-width: var(--hlp-container-wide);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hlp-hero {
    padding: var(--hlp-section-padding) 1rem;
    background: linear-gradient(to bottom right, var(--hlp-primary-light), var(--hlp-bg), var(--hlp-beige));
    text-align: center;
}

.hlp-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--hlp-text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hlp-hero__subtitle {
    font-size: 1.25rem;
    color: var(--hlp-text-muted);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Search Input */
.hlp-search {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.hlp-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hlp-text-muted);
    pointer-events: none;
}

.hlp-search__input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem 0 3rem;
    font-size: 1.125rem;
    background: white;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: box-shadow 0.2s;
}

.hlp-search__input:focus {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 3px var(--hlp-primary-light);
}

.hlp-search__input::placeholder {
    color: var(--hlp-text-muted);
}

/* ==========================================================================
   Section Base
   ========================================================================== */

.hlp-section {
    padding: var(--hlp-section-padding) 1rem;
}

.hlp-section--alt {
    background-color: var(--hlp-bg-alt);
}

.hlp-section__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--hlp-text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.hlp-grid {
    display: grid;
    gap: 1.5rem;
}

.hlp-grid--3col {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hlp-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hlp-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Icon Box
   ========================================================================== */

.hlp-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.hlp-icon-box--sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
}

/* Icon Box Colors */
.hlp-icon-box--blue {
    background-color: var(--hlp-primary-light);
    color: var(--hlp-primary);
}

.hlp-icon-box--green {
    background-color: var(--hlp-green-light);
    color: var(--hlp-green);
}

.hlp-icon-box--orange {
    background-color: var(--hlp-orange-light);
    color: var(--hlp-orange);
}

.hlp-icon-box--red {
    background-color: var(--hlp-red-light);
    color: var(--hlp-red);
}

.hlp-icon-box--purple {
    background-color: var(--hlp-purple-light);
    color: var(--hlp-purple);
}

.hlp-icon-box--cyan {
    background-color: var(--hlp-cyan-light);
    color: var(--hlp-cyan);
}

/* ==========================================================================
   Quick Start Guide Cards
   ========================================================================== */

.hlp-guide-card {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.hlp-guide-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.hlp-guide-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hlp-guide-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hlp-text-dark);
    margin: 0;
    line-height: 1.3;
}

.hlp-guide-card__description {
    font-size: 0.875rem;
    color: var(--hlp-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */

.hlp-category-card {
    padding: 1.5rem;
    background: var(--hlp-bg);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hlp-category-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hlp-category-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hlp-text-dark);
    margin: 0;
}

.hlp-category-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hlp-category-card__list li {
    font-size: 0.875rem;
    color: var(--hlp-text-muted);
    padding-left: 1rem;
    position: relative;
}

.hlp-category-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--hlp-text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.hlp-faq-container {
    max-width: 48rem;
    margin: 0 auto;
}

.hlp-faq-list {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hlp-faq-item {
    border-bottom: 1px solid var(--hlp-sand);
}

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

.hlp-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.hlp-faq-toggle:hover {
    background-color: var(--hlp-bg);
}

.hlp-faq-question {
    font-size: 1rem;
    font-weight: 500;
    color: var(--hlp-text-dark);
    padding-right: 1rem;
}

.hlp-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hlp-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.hlp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hlp-faq-item.active .hlp-faq-answer {
    max-height: 500px;
}

.hlp-faq-answer__content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.hlp-faq-answer__content p {
    font-size: 0.9375rem;
    color: var(--hlp-text-muted);
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.hlp-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hlp-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.hlp-faq-link:hover {
    color: var(--hlp-primary-hover);
}

.hlp-faq-link svg {
    transition: transform 0.2s;
}

.hlp-faq-link:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.hlp-cta {
    padding: var(--hlp-section-padding) 1rem;
    background: linear-gradient(to bottom right, var(--hlp-primary), #4469bd);
    text-align: center;
}

.hlp-cta__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.hlp-cta__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hlp-cta__button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hlp-primary);
    background: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.hlp-cta__button:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (min-width: 768px) {
    .hlp-hero__title {
        font-size: 3rem;
    }
    
    .hlp-section__title {
        font-size: 1.875rem;
    }
    
    .hlp-cta__title {
        font-size: 1.875rem;
    }
}

/* Search results filtering (for JavaScript) */
.hlp-faq-item.hidden {
    display: none;
}

/* ==========================================================================
   Search Results Counter
   ========================================================================== */

.hlp-search__results {
    font-size: 0.875rem;
    color: var(--hlp-text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* ==========================================================================
   Difficulty Badges
   ========================================================================== */

.hlp-difficulty {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 9999px;
    white-space: nowrap;
}

.hlp-difficulty--beginner {
    background-color: var(--hlp-green-light);
    color: var(--hlp-green);
}

.hlp-difficulty--intermediate {
    background-color: var(--hlp-orange-light);
    color: #D97706;
}

.hlp-difficulty--advanced {
    background-color: var(--hlp-purple-light);
    color: var(--hlp-purple);
}

/* ==========================================================================
   FAQ Meta Information
   ========================================================================== */

.hlp-faq-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.hlp-faq-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hlp-faq-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--hlp-text-muted);
}

.hlp-faq-time svg {
    flex-shrink: 0;
}

/* Update FAQ toggle for new layout */
.hlp-faq-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    gap: 1rem;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.hlp-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hlp-empty-state svg {
    color: var(--hlp-text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hlp-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hlp-text-dark);
    margin: 0 0 0.5rem 0;
}

.hlp-empty-state p {
    font-size: 0.875rem;
    color: var(--hlp-text-muted);
    margin: 0;
}

/* No results message */
.hlp-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--hlp-text-muted);
    display: none;
}

.hlp-no-results.visible {
    display: block;
}

/* ==========================================================================
   Responsive Adjustments for Meta
   ========================================================================== */

@media (min-width: 640px) {
    .hlp-faq-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .hlp-faq-toggle {
        align-items: center;
    }
}
