/* =================================
   FAQ SECTION STYLES
   ================================= */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Glassy effect for items */
.faq-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.05), rgba(0, 0, 0, 0));
    box-shadow: var(--shadow-glow);
}

/* Header (Question) */
.faq-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
}

.faq-question {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
    padding-right: 1rem;
}

.faq-item.active .faq-question {
    color: var(--accent);
}

/* Icon */
.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 2px;
    height: 100%;
}

.faq-icon::after {
    width: 100%;
    height: 2px;
}

/* Rotate to X when active */
.faq-item.active .faq-icon {
    transform: rotate(135deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background-color: #ff3366;
    /* Red/Pink for close state */
}

/* Content (Answer) */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease 0.1s;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
    }

    .faq-header {
        padding: 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}