/* FAQ Page Styling */

/* Hero Section */
.faq-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.faq-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.faq-hero .gradient-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(60px);
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.faq-hero .orb-1 {
    width: 280px;
    height: 280px;
    top: 15%;
    left: -8%;
    animation-delay: 0s;
}

.faq-hero .orb-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.faq-hero .orb-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 65%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    33% { transform: translateY(-15px) scale(1.05) rotate(1deg); }
    66% { transform: translateY(10px) scale(0.95) rotate(-1deg); }
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.faq-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.inline-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Search Section */
.faq-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-container {
    position: relative;
}

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

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Category Tabs */
.faq-categories {
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.category-tab {
    padding: 0.8rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
}

.category-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

/* FAQ Content */
.faq-content {
    padding: 4rem 0 8rem;
    background: var(--bg-secondary);
}

.faq-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-elevated);
}

.faq-question h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

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

.faq-answer ul, .faq-answer ol {
    padding-left: 3rem;
}

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

.faq-answer h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 2rem 0.5rem 2rem;
    padding-top: 0.5rem;
}

.faq-answer h5:first-child {
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.platform-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Pricing Summary */
.pricing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.plan-summary {
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.plan-summary h5 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0;
}

.plan-summary ul {
    padding-left: 1.2rem;
    margin: 0;
}

.plan-summary li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Contact CTA */
.faq-contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

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

.contact-cta p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        min-height: 60vh;
        padding: 4rem 0;
    }
    
    .faq-categories {
        padding: 3rem 0 1rem;
    }
    
    .faq-content {
        padding: 3rem 0 6rem;
    }
    
    .faq-contact {
        padding: 5rem 0;
    }
    
    .category-tabs {
        gap: 0.3rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h4 {
        font-size: 1.1rem;
    }
    
    .faq-answer p, .faq-answer ul, .faq-answer ol {
        padding: 0 1.5rem 1.2rem;
    }
    
    .faq-answer h5 {
        margin: 0 1.5rem 0.5rem 1.5rem;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-summary {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        min-height: 50vh;
    }
    
    .faq-title {
        font-size: 2.2rem;
    }
    
    .faq-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    }
    
    .category-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .faq-question {
        padding: 1rem 1.2rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer p, .faq-answer ul, .faq-answer ol {
        padding: 0 1.2rem 1rem;
        font-size: 0.95rem;
    }
    
    .plan-summary {
        padding: 1.2rem;
    }
}
