/* FAQ Page Specific Styles */

/* =====================================================
   FAQ HERO SECTION
   ===================================================== */

.hero-progressive {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: var(--gradient-radial);
    opacity: 0.1;
}

.energy-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(135, 43, 151, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(255, 113, 48, 0.06) 0%, transparent 50%);
    animation: energy-flow 28s ease-in-out infinite;
}

@keyframes energy-flow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(0.4deg); }
}

.floating-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-nodes::before,
.floating-nodes::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(135, 43, 151, 0.04) 0%, transparent 70%);
    animation: float-nodes 22s ease-in-out infinite;
}

.floating-nodes::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-nodes::after {
    bottom: 20%;
    right: 20%;
    animation-delay: 11s;
}

@keyframes float-nodes {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -15px) scale(1.03); }
    66% { transform: translate(-10px, 10px) scale(0.97); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    animation: fade-in-up 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   FAQ SECTION STYLES
   ===================================================== */

.faq-section {
    background: var(--bg-secondary);
    padding: var(--space-3xl) 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.search-box {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(135, 43, 151, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* =====================================================
   FAQ CATEGORIES
   ===================================================== */

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.category-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(135, 43, 151, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.25rem;
}

.category-header h3 {
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
}

.category-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =====================================================
   FAQ ITEMS
   ===================================================== */

.faq-content {
    max-width: none;
}

.faq-category-section {
    margin-bottom: var(--space-2xl);
}

.faq-category-section h2 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.faq-category-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    background: var(--bg-elevated);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(135, 43, 151, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-glass);
}

.faq-question h3 {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
    padding-right: var(--space-sm);
}

.faq-icon {
    color: var(--text-gray);
    transition: transform 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-gray);
    line-height: 1.6;
}

.faq-answer-content a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-answer-content a:hover {
    border-bottom-color: var(--purple);
}

/* FAQ JavaScript functionality */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact-section {
    background: var(--bg-primary);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.contact-card {
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-card h2 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.contact-card p {
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--bg-glass);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-gray);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE DESIGN - FAQ SPECIFIC
   ===================================================== */

@media (max-width: 768px) {
    .hero-progressive {
        padding-top: 80px;
        min-height: 60vh;
        padding-bottom: var(--space-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-categories {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .faq-question {
        padding: var(--space-md);
    }
    
    .faq-answer-content {
        padding: 0 var(--space-md) var(--space-md);
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .category-card,
    .contact-card {
        padding: var(--space-md);
    }
    
    .search-box {
        padding: var(--space-md);
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Print styles for FAQ */
@media print {
    .hero-background,
    .floating-nodes,
    .energy-grid,
    .search-box,
    .contact-section {
        display: none;
    }
    
    .hero-progressive {
        background: white;
        min-height: auto;
        color: black;
    }
    
    .faq-section {
        background: white;
    }
    
    .faq-item {
        background: white;
        color: black;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .faq-answer {
        max-height: none !important;
    }
    
    .faq-question h3,
    .faq-category-section h2 {
        color: black;
    }
    
    .faq-answer-content {
        color: black;
    }
}
