/* FAQ Section Styles - Premium Dark/Glassmorphism */

.faq-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
    background: transparent;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light, #a78bfa);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main);
    /* Adaptive Color */
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    /* Adaptive Color */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Accordion Item - Default Dark Mode */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background: rgba(25, 20, 40, 0.6);
    border-color: var(--color-primary-light, #a78bfa);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

/* Question Header */
.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-main);
    /* Adaptive Color */
    transition: color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--color-primary-light, #a78bfa);
}

/* Toggle Icon */
.faq-toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: currentColor;
    /* Inherits from text color */
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.faq-toggle-icon::before {
    width: 2px;
    height: 100%;
}

.faq-toggle-icon::after {
    width: 100%;
    height: 2px;
}

/* Active State Transformations */
.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle-icon::before,
.faq-item.active .faq-toggle-icon::after {
    background-color: var(--color-primary-light, #a78bfa);
}

/* Answer Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-muted);
    /* Adaptive Color */
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer-content {
    opacity: 1;
    transform: translateY(0);
}

.faq-answer-content strong {
    color: var(--text-main);
    /* Adaptive Color */
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

/* ==========================================================================
   LIGHT MODE OVERRIDES
   ========================================================================== */
[data-theme="light"] .faq-section {
    background: transparent;
}

[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.6);
    /* Semi-transparent white */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle dark border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Soft shadow for depth */
}

[data-theme="light"] .faq-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .faq-item.active {
    background: #ffffff;
    /* Solid white when active */
    border-color: var(--color-primary-light);
    box-shadow: 0 10px 30px rgba(99, 39, 160, 0.15);
    /* Purple glow shadow */
}

/* Ensure strong tags pop in light mode */
[data-theme="light"] .faq-answer-content strong {
    color: #000;
}