/* FAQ Page Styles - Based on Welcome Page Design */

:root {
    --primary-color: #2962ff;
    --secondary-color: #f8f9fa;
    --accent-color: #00c853;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #ffffff;
    --border-color: #dee2e6;
    --success-color: #00c853;
    --warning-color: #ff9800;
    --danger-color: #f44336;
}

/* FAQ Hero Section */
.faq-hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
}

.faq-hero-content {
    padding: 2rem 0;
}

.faq-hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Search Section */
.faq-search-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.faq-search-box {
    position: relative;
}

.faq-search-box .input-group-text {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--text-secondary);
    border-radius: 8px 0 0 8px;
}

.faq-search-box .form-control {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search-box .form-control:focus {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(41, 98, 255, 0.25);
    outline: none;
}

.faq-search-box .form-control::placeholder {
    color: var(--text-secondary);
}

/* FAQ Categories */
.faq-categories-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.faq-category-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-category-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}

.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}

.faq-category-btn i {
    font-size: 1rem;
}

/* FAQ Content Section */
.faq-content-section {
    background: var(--bg-secondary);
    min-height: 60vh;
}

.faq-accordion {
    max-width: 100%;
}

.faq-category-section {
    margin-bottom: 3rem;
}

.faq-category-section:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-category-title i {
    font-size: 1.3rem;
}

.accordion-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.15);
    transform: translateY(-2px);
}

.accordion-button {
    background: var(--bg-primary);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(41, 98, 255, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1.5rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body ul,
.accordion-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

.accordion-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Strategy Info Styles */
.strategy-info {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.strategy-info h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strategy-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.strategy-info p:last-child {
    margin-bottom: 0;
}

/* Crypto Pairs Styles */
.crypto-pairs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.crypto-pair {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.crypto-pair:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 196, 83, 0.3);
}

/* Tariff Info Styles */
.tariff-info {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.tariff-info h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tariff-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.tariff-info p:last-child {
    margin-bottom: 0;
}

/* Support Methods Styles */
.support-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.support-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.support-method:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.support-method i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.support-method strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ Contact Section */
.faq-contact-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-top: 1px solid var(--border-color);
}

.faq-contact-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.faq-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.faq-contact-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.faq-contact-title i {
    font-size: 1.5rem;
}

.faq-contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.faq-contact-buttons .btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-contact-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}

.faq-contact-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.faq-contact-buttons .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.faq-contact-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}

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

    .faq-hero-description {
        font-size: 1.1rem;
    }

    .faq-categories {
        gap: 0.5rem;
    }

    .faq-category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .faq-category-title {
        font-size: 1.3rem;
    }

    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1.25rem;
    }

    .faq-contact-card {
        padding: 2rem 1.5rem;
    }

    .faq-contact-title {
        font-size: 1.5rem;
    }

    .faq-contact-description {
        font-size: 1rem;
    }

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

    .faq-contact-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .crypto-pairs {
        justify-content: center;
    }

    .support-methods {
        gap: 0.75rem;
    }

    .support-method {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .faq-hero-section {
        min-height: 40vh;
    }

    .faq-hero-title {
        font-size: 2rem;
    }

    .faq-hero-description {
        font-size: 1rem;
    }

    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .faq-category-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .faq-category-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 1rem;
    }

    .faq-contact-card {
        padding: 1.5rem 1rem;
    }

    .faq-contact-title {
        font-size: 1.3rem;
    }

    .faq-contact-description {
        font-size: 0.95rem;
    }

    .strategy-info,
    .tariff-info {
        padding: 1rem;
    }

    .crypto-pair {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation for FAQ items */
.faq-category-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search highlight */
.search-highlight {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Hidden category */
.faq-category-section.hidden {
    display: none;
}

/* Smooth transitions */
.accordion-collapse {
    transition: all 0.3s ease;
}

.accordion-button {
    transition: all 0.3s ease;
}

/* Loading state */
.faq-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.faq-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
