/* ==========================================================================
   FAQ Page Specific Styles
   ========================================================================== */

/* FAQ Hero Section */
.faq-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at top center, var(--accent-bg) 0%, var(--primary-bg) 60%);
    overflow: hidden;
}

.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 50px,
        var(--primary-orange) 50px,
        var(--primary-orange) 51px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        var(--primary-orange) 50px,
        var(--primary-orange) 51px
    );
    animation: circuitPulse 10s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

.faq-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.title-word {
    display: block;
    animation: titleSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.title-word.accent {
    color: var(--primary-orange);
    text-shadow: 0 0 40px var(--orange-glow);
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.page-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.page-subtitle .subtitle-emphasis {
    color: var(--primary-orange);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--primary-bg) 100%);
}

/* Section Container */
.section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* FAQ Category */
.faq-category {
    margin-bottom: 3rem;
}

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

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange), rgba(255, 102, 0, 0.5));
    border-radius: 12px;
    font-size: 1.5rem;
    box-shadow: 0 0 20px var(--orange-glow);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.glass-card {
    padding: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.faq-item:hover {
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 5px 30px rgba(255, 102, 0, 0.1);
}

.faq-item.active {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.2);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 102, 0, 0.05);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.5;
    padding-right: 1rem;
}

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--primary-orange);
    color: var(--primary-bg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.faq-answer strong {
    color: var(--primary-orange);
    font-weight: 600;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.faq-answer li strong {
    color: var(--text-primary);
}

/* CTA Section */
.faq-cta {
    padding: 6rem 0;
    background: radial-gradient(ellipse at bottom center, var(--accent-bg) 0%, var(--primary-bg) 60%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-orange {
    color: var(--primary-orange);
    text-shadow: 0 0 20px var(--orange-glow);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--primary-bg);
    border-top: 1px solid var(--glass-border);
}

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

.footer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

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

.faq-category {
    animation: fadeInUp 0.6s ease-out backwards;
}

.faq-category:nth-child(1) { animation-delay: 0.1s; }
.faq-category:nth-child(2) { animation-delay: 0.2s; }
.faq-category:nth-child(3) { animation-delay: 0.3s; }
.faq-category:nth-child(4) { animation-delay: 0.4s; }
.faq-category:nth-child(5) { animation-delay: 0.5s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 40vh;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .faq-section {
        padding: 3rem 0 4rem;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    .category-header {
        gap: 0.75rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

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

    .question-text {
        font-size: 1rem;
    }

    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }

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

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

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .faq-answer p,
    .faq-answer li {
        font-size: 0.95rem;
    }
}
