/* FAQ Page Styles */

.faq-main {
    padding-top: 70px;
    min-height: 100vh;
    background: #0a0a0a;
}

/* FAQ Hero Section */
.faq-hero {
    position: relative;
    padding: 4rem 4% 3rem;
    background: linear-gradient(135deg, rgba(91, 141, 238, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-bottom: 1px solid rgba(91, 141, 238, 0.2);
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(91, 141, 238, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.faq-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.faq-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.faq-hero-subtitle {
    font-size: 1.3rem;
    color: #999;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Container */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 4% 4rem;
}

/* Search Section */
.faq-search-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.faq-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.faq-search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(91, 141, 238, 0.6);
    box-shadow: 0 0 0 4px rgba(91, 141, 238, 0.1), 0 8px 30px rgba(91, 141, 238, 0.2);
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Category Filters */
.faq-categories {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.faq-category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #999;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(91, 141, 238, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.faq-category-btn:hover::before {
    width: 300px;
    height: 300px;
}

.faq-category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(91, 141, 238, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.faq-category-btn.active {
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-color: rgba(91, 141, 238, 0.8);
    color: #fff;
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.4);
}

.faq-category-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* FAQ Sections */
.faq-sections {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.faq-section {
    margin-bottom: 3rem;
    opacity: 1;
    transition: all 0.4s ease;
}

.faq-section.hidden {
    display: none;
}

.faq-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-left: 1.5rem;
}

.faq-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border-radius: 3px;
}

/* FAQ Items */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(91, 141, 238, 0.3);
    transform: translateX(5px);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(91, 141, 238, 0.5);
    box-shadow: 0 8px 30px rgba(91, 141, 238, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.8rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.faq-question:hover {
    color: #5B8DEE;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #999;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #5B8DEE;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.8rem 1.5rem;
}

.faq-answer p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    position: relative;
}

.faq-answer ul li::marker {
    color: #5B8DEE;
}

.faq-answer ol li::marker {
    color: #5B8DEE;
    font-weight: 600;
}

.faq-answer strong {
    color: #fff;
    font-weight: 600;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.no-results-text {
    font-size: 1rem;
    color: #999;
}

/* Contact Support Section */
.faq-contact {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(91, 141, 238, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(91, 141, 238, 0.2);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(91, 141, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.faq-contact-content {
    position: relative;
    z-index: 1;
}

.faq-contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.faq-contact-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.faq-contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-btn:hover::before {
    width: 400px;
    height: 400px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(91, 141, 238, 0.5);
}

.contact-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 3rem 5% 2rem;
    }

    .faq-hero-title {
        font-size: 2rem;
    }

    .faq-hero-subtitle {
        font-size: 1rem;
    }

    .faq-container {
        padding: 2rem 5% 3rem;
    }

    .faq-search-section {
        margin-bottom: 2rem;
    }

    .faq-search-input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.95rem;
    }

    .faq-search-icon {
        left: 1rem;
    }

    .faq-categories {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }

    .faq-category-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .faq-category-btn svg {
        width: 16px;
        height: 16px;
    }

    .faq-section {
        margin-bottom: 2rem;
    }

    .faq-section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        padding-left: 1rem;
    }

    .faq-section-title::before {
        width: 4px;
    }

    .faq-items {
        gap: 0.8rem;
    }

    .faq-question {
        padding: 1.2rem 1.2rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.2rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        font-size: 0.95rem;
    }

    .faq-contact {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .faq-contact-title {
        font-size: 1.5rem;
    }

    .faq-contact-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .faq-contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.faq-question:focus,
.faq-category-btn:focus,
.faq-search-input:focus,
.contact-btn:focus {
    outline: 2px solid rgba(91, 141, 238, 0.6);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .faq-hero,
    .faq-search-section,
    .faq-categories,
    .faq-contact {
        display: none;
    }

    .faq-item {
        page-break-inside: avoid;
    }

    .faq-answer {
        max-height: none !important;
        padding: 0 1.8rem 1.5rem !important;
    }
}
