/* ========================================
   FAQ Page Styles
   CS Viagens & Eventos
   ======================================== */

/* ========================================
   Hero Section
   ======================================== */
.faq-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.faq-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 66, 212, 0.85) 0%, rgba(13, 54, 168, 0.9) 100%);
}

.faq-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 800px;
}

.faq-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .faq-hero {
        min-height: 350px;
    }
    
    .faq-hero-content h1 {
        font-size: 3rem;
    }
    
    .faq-hero-content p {
        font-size: 1.25rem;
    }
}

/* ========================================
   Search Section
   ======================================== */
.faq-search-section {
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e7eaf3;
}

.dark .faq-search-section {
    background: #1e293b;
    border-color: #334155;
}

.faq-search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-input-wrapper {
    position: relative;
    flex: 1;
}

.faq-search-input-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e7eaf3;
    border-radius: 9999px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .faq-search-input {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--color-primary, #1142d4);
    box-shadow: 0 0 0 3px rgba(17, 66, 212, 0.1);
}

.faq-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-search-clear:hover {
    color: #ef4444;
}

.faq-search-btn {
    padding: 0.875rem 1.5rem;
    background: var(--color-primary, #1142d4);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.faq-search-btn:hover {
    background: var(--color-primary-dark, #0d36a8);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .faq-search-form {
        flex-direction: column;
    }
    
    .faq-search-btn {
        width: 100%;
    }
}

/* Category Tags */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.faq-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e7eaf3;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.dark .faq-category-tag {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.faq-category-tag:hover {
    border-color: var(--color-primary, #1142d4);
    color: var(--color-primary, #1142d4);
}

.faq-category-tag.active {
    background: var(--color-primary, #1142d4);
    border-color: var(--color-primary, #1142d4);
    color: white;
}

/* ========================================
   FAQ Content Section
   ======================================== */
.faq-content-section {
    padding: 3rem 1.5rem 4rem;
    min-height: 400px;
}

.faq-results-count {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.dark .faq-results-count {
    color: #94a3b8;
}

/* No Results / Empty State */
.faq-no-results,
.faq-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.faq-no-results .material-symbols-outlined,
.faq-empty .material-symbols-outlined {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.dark .faq-no-results .material-symbols-outlined,
.dark .faq-empty .material-symbols-outlined {
    color: #475569;
}

.faq-no-results h3,
.faq-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.dark .faq-no-results h3,
.dark .faq-empty h3 {
    color: white;
}

.faq-no-results p,
.faq-empty p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.dark .faq-no-results p,
.dark .faq-empty p {
    color: #94a3b8;
}

/* Category Group */
.faq-category-group {
    margin-bottom: 2.5rem;
}

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

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary, #1142d4);
}

.dark .faq-category-title {
    color: white;
}

.faq-category-title .material-symbols-outlined {
    color: var(--color-primary, #1142d4);
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion-item {
    background: white;
    border: 1px solid #e7eaf3;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .faq-accordion-item {
    background: #1e293b;
    border-color: #334155;
}

.faq-accordion-item:hover {
    border-color: rgba(17, 66, 212, 0.3);
}

.faq-accordion-item.active {
    border-color: var(--color-primary, #1142d4);
    box-shadow: 0 4px 6px -1px rgba(17, 66, 212, 0.1);
}

.faq-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.dark .faq-question {
    color: white;
}

.faq-accordion-icon {
    color: #64748b;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dark .faq-accordion-icon {
    color: #94a3b8;
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(180deg);
    color: var(--color-primary, #1142d4);
}

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

.faq-accordion-item.active .faq-accordion-content {
    max-height: 1000px;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

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

.faq-answer ul,
.faq-answer ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.faq-answer ul {
    list-style-type: disc;
}

.faq-answer ol {
    list-style-type: decimal;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

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

.faq-answer strong,
.faq-answer b {
    font-weight: 600;
    color: #1e293b;
}

.dark .faq-answer strong,
.dark .faq-answer b {
    color: #e2e8f0;
}

.dark .faq-answer {
    color: #94a3b8;
}

/* Feedback */
.faq-feedback {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e7eaf3;
    background: #f8fafc;
}

.dark .faq-feedback {
    border-color: #334155;
    background: #0f172a;
}

.faq-feedback > span {
    font-size: 0.875rem;
    color: #64748b;
}

.dark .faq-feedback > span {
    color: #94a3b8;
}

.faq-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e7eaf3;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #64748b;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.dark .faq-feedback-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.faq-feedback-btn:hover {
    border-color: var(--color-primary, #1142d4);
    color: var(--color-primary, #1142d4);
}

.faq-feedback-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.faq-feedback-btn .count {
    font-weight: 600;
}

.faq-feedback-btn.voted {
    background: var(--color-primary, #1142d4);
    border-color: var(--color-primary, #1142d4);
    color: white;
}

/* ========================================
   CTA Section
   ======================================== */
.faq-cta-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dark .faq-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.faq-cta-icon {
    font-size: 3.5rem;
    color: var(--color-primary, #1142d4);
    margin-bottom: 1rem;
}

.faq-cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.dark .faq-cta-section h2 {
    color: white;
}

.faq-cta-section p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.dark .faq-cta-section p {
    color: #94a3b8;
}

.faq-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-faq-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--color-primary, #1142d4);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-faq-primary:hover {
    background: var(--color-primary-dark, #0d36a8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 66, 212, 0.3);
}

.btn-faq-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-faq-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ========================================
   Utilities
   ======================================== */
.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-accordion-item {
    animation: fadeInUp 0.4s ease forwards;
}

.faq-accordion-item:nth-child(1) { animation-delay: 0.05s; }
.faq-accordion-item:nth-child(2) { animation-delay: 0.1s; }
.faq-accordion-item:nth-child(3) { animation-delay: 0.15s; }
.faq-accordion-item:nth-child(4) { animation-delay: 0.2s; }
.faq-accordion-item:nth-child(5) { animation-delay: 0.25s; }
.faq-accordion-item:nth-child(6) { animation-delay: 0.3s; }
