/* faq.css - YatrAmore FAQ Styling */

:root {
    --faq-gap: 1.5rem;
}

.faq-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 4rem;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(107, 66, 38, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(230, 220, 207, 0.6) 0%, transparent 50%);
    transition: background 0.8s ease;
}

[data-theme="dark"] .faq-hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 196, 176, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(18, 18, 18, 0.9) 0%, transparent 50%);
}

.travel-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 66, 38, 0.1);
    color: var(--brand-brown);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.travel-hero-content {
    max-width: 720px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="dark"] .travel-hero-tag {
    background: rgba(212, 196, 176, 0.1);
}

.faq-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--brand-brown);
}

.faq-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.faq-category {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.faq-category.revealed {
    opacity: 1;
    transform: translateY(0);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.category-title i {
    font-size: 1.5rem;
    color: var(--brand-brown);
}

.category-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-brown);
}

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

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(107, 66, 38, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-brown);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: var(--brand-brown);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--brand-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--brand-brown);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough for any answer */
    opacity: 1;
}

.answer-content {
    padding: 0 2rem 2rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.answer-content a {
    color: var(--brand-brown);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-slow);
}

.answer-content a:hover {
    color: var(--text-main);
    text-decoration: none;
}

/* ── Search Bar ───────────────────────────────────── */
.faq-search-wrapper {
    margin: -30px auto 5rem;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.faq-search-bar {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--bg-main);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.faq-search-bar:focus {
    outline: none;
    border-color: var(--brand-brown);
    box-shadow: 0 15px 50px rgba(107, 66, 38, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-brown);
    font-size: 1.2rem;
}

/* ── Footer Link ──────────────────────────────────── */
.still-questions {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

[data-theme="dark"] .still-questions {
    background: rgba(45, 45, 45, 0.4);
}

.still-questions h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--brand-brown);
    font-weight: 700;
}

.still-questions p {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* ── Mobile Tweaks ────────────────────────────────── */
@media (max-width: 768px) {
    .faq-hero {
        padding: 8rem 1rem 3rem;
    }
    .faq-hero h1 {
        font-size: 2.2rem;
    }
    .faq-hero p {
        font-size: 1rem;
    }
    .faq-search-wrapper {
        margin: 0 auto 3rem;
        padding: 0;
        width: 100%;
        position: relative;
        z-index: 20;
    }
    .faq-search-bar {
        font-size: 1rem;
        padding: 1rem 1.5rem 1rem 3.2rem;
        width: 100%;
        box-sizing: border-box;
    }
    .search-icon {
        left: 1.2rem;
    }
    .faq-question {
        padding: 1.2rem;
        gap: 1rem;
    }
    .faq-question h3 {
        font-size: 1.05rem;
    }
    .answer-content {
        padding: 0 1.2rem 1.5rem;
        font-size: 0.95rem;
    }
    .category-title h2 {
        font-size: 1.4rem;
    }
    .faq-no-results {
        padding: 3rem 1rem;
        margin: 2rem 0;
    }
    .still-questions {
        padding: 3rem 1.5rem;
        margin-top: 3rem;
    }
}

/* ── FAQ Search Highlights & Empty State ─────────── */
.faq-highlight {
    background-color: rgba(255, 230, 0, 0.2);
    color: inherit;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.faq-no-results {
    text-align: center;
    padding: 5rem 2rem;
    margin: 3rem 0;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.faq-no-results i {
    font-size: 3.5rem;
    color: var(--brand-brown);
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.faq-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-no-results p {
    color: var(--text-muted);
}

