/**
 * FAQ Component - Ultra Dark Mode Edition
 * 
 * Specific styles for the FAQ page layout (accordion, search, categories).
 */

/* ============================================
   Search Bar
   ============================================ */
.faq-search-container {
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 10;
}

.faq-search-wrapper {
    position: relative;
}

.faq-search__input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #1a1d20;
}

[data-theme="dark"] .faq-search__input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-search__input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.faq-search__icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.3s ease;
}

.faq-search__input:focus + .faq-search__icon,
.faq-search__input:not(:placeholder-shown) + .faq-search__icon {
    color: #d4af37;
}

/* ============================================
   Categories Filter
   ============================================ */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.faq-category {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .faq-category {
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.faq-category:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #1a1d20;
}

[data-theme="dark"] .faq-category:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.faq-category--active {
    background: #0c2340;
    color: #ffffff;
    border-color: #0c2340;
}

[data-theme="dark"] .faq-category--active {
    background: #d4af37;
    color: #0c2340;
    border-color: #d4af37;
}

.faq-category--active:hover {
    background: #1a3a5a;
    color: #ffffff;
}

[data-theme="dark"] .faq-category--active:hover {
    background: #e9d38b;
    color: #0c2340;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1d20;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .faq-section__title {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-section__title i {
    color: #d4af37;
}

.faq-section__description {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.faq-item--featured {
    border-color: #d4af37;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
}

.faq-item__question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1d20;
}

[data-theme="dark"] .faq-item__question {
    color: #f1f5f9;
}

.faq-item__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #d4af37;
    color: #0c2340;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-weight: 700;
}

.faq-item__icon {
    width: 24px;
    height: 24px;
    position: relative;
    color: #d4af37;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item__icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item__icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Open State */
.faq-item[open] .faq-item__icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item[open] .faq-item__icon-minus {
    opacity: 1;
    transform: rotate(0);
}

.faq-item__answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-item__answer {
    height: auto;
}

.faq-item__answer-content {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.7;
    border-top: 1px solid transparent;
}

[data-theme="dark"] .faq-item__answer-content {
    color: #cbd5e1;
}

.faq-item[open] .faq-item__answer-content {
    border-top-color: rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

[data-theme="dark"] .faq-item[open] .faq-item__answer-content {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Empty State & CTA
   ============================================ */
.faq-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.faq-empty-state__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.faq-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 20px;
}

[data-theme="dark"] .faq-cta {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.faq-cta__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1d20;
}

[data-theme="dark"] .faq-cta__title {
    color: #f1f5f9;
}

.faq-cta__subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.faq-cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.faq-cta__button {
    display: inline-flex;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq-cta__button--primary {
    background: #0c2340;
    color: #ffffff;
}

.faq-cta__button--primary:hover {
    background: #1a3a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}

.faq-cta__button--secondary {
    background: transparent;
    border: 2px solid #0c2340;
    color: #0c2340;
}

[data-theme="dark"] .faq-cta__button--secondary {
    border-color: #f1f5f9;
    color: #f1f5f9;
}

.faq-cta__button--secondary:hover {
    background: rgba(12, 35, 64, 0.05);
}

[data-theme="dark"] .faq-cta__button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
