/* Support Page Styles - Following UI/UX Style Guide */

/* Page Container */
.support-page {
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Hero Section - Ma (Negative Space) & Wa (Harmony) */
.support-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.support-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.support-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Search Container - Refined Bubble/Capsule Aesthetic */
.support-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.support-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px; /* Full capsule shape */
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.support-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: var(--bg-card);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 2;
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* Support Actions - Generous Padding & Visual Hierarchy */
.support-actions {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.support-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* Refined rounded corners */
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Subtle hover animation - Ambient Cues */
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.support-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.support-card:hover .support-card-icon {
    transform: scale(1.1);
}

.support-card-icon i {
    font-size: 1.75rem;
    color: white;
}

.support-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.support-card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.support-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.support-card-link:hover {
    color: var(--primary-color-hover);
    gap: 0.75rem; /* Subtle animation */
}

.support-card-link i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.support-card-link:hover i {
    transform: translateX(2px);
}

/* Content Sections - Strategic Use of Negative Space */
.support-content-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.faq-section {
    background-color: var(--bg-secondary);
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Guides Grid - Minimalist Design */
.guides-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.guide-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-subtle);
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon i {
    font-size: 1.25rem;
    color: white;
}

.guide-content {
    flex: 1;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.guide-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.guide-link:hover {
    color: var(--primary-color-hover);
    gap: 0.75rem;
}

/* FAQ Styles - Clean Accordion Design */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

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

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent-subtle);
}

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

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

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 1rem;
}

.faq-answer {
    border-top: 1px solid var(--border-color);
}

.faq-answer-content {
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section - Emotionally Resonant Design */
.support-contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
}

.contact-content {
    text-align: center;
}

.contact-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 50px; /* Full capsule */
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.contact-btn:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    color: white;
}

.contact-email {
    text-align: center;
}

.email-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

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

/* Responsive Design - Mobile-First Approach */
@media (max-width: 768px) {
    .support-title {
        font-size: 2.25rem;
    }
    
    .support-subtitle {
        font-size: 1.125rem;
    }
    
    .support-hero {
        padding: 3rem 0 2rem;
    }
    
    .support-actions,
    .support-content-section {
        padding: 3rem 0;
    }
    
    .support-card {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .guide-item {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-icon {
        align-self: center;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 1.25rem 1.5rem;
    }
    
    .contact-title {
        font-size: 1.875rem;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (min-width: 992px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-email {
        text-align: left;
    }
}

/* Focus states for accessibility */
.support-search:focus,
.faq-question:focus,
.support-card-link:focus,
.guide-link:focus,
.contact-btn:focus,
.email-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .support-hero,
    .support-contact-section {
        background: white !important;
    }
    
    .support-card,
    .guide-item,
    .faq-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}