/* ==========================================
   BAZA STRONY FAQ
========================================== */
body {
    background-color: #050505;
    color: white;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-top: 100px;
    overflow-x: hidden;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   HEADER (HERO SEKCJA FAQ)
========================================== */
.faq-hero {
    position: relative;
    padding: 6rem 0 4rem 0;
    text-align: center;
    overflow: hidden;
}

.faq-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(230,0,0,0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.faq-hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 1.5rem 0 1rem 0;
    letter-spacing: 2px;
}

.text-red {
    color: #E60000;
}

.faq-subtitle {
    color: #aaaaaa;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

.kako-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 0, 0, 0.1);
    border: 1px solid rgba(230, 0, 0, 0.3);
    color: #E60000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================
   LISTA FAQ (ACCORDION)
========================================== */
.faq-section {
    padding: 2rem 0 6rem 0;
}

.faq-category {
    margin-bottom: 5rem;
}

.faq-cat-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-cat-title i {
    color: #E60000;
}

/* Pojedynczy element Akordeonu */
.accordion-item {
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(230, 0, 0, 0.3);
    background-color: rgba(20, 20, 20, 0.8);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s;
    line-height: 1.4;
}

.accordion-header:hover {
    color: #E60000;
}

.accordion-header .icon {
    font-size: 1rem;
    color: #666;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
    margin-left: 20px;
    flex-shrink: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-content p {
    margin: 0;
    padding: 0 2rem 1.2vw 2rem; 
    color: #bbbbbb;
    font-size: 1.05rem;
    line-height: 1.8;
}

.accordion-content strong {
    color: #E60000;
    font-weight: 700;
}

/* ==========================================
   NOWE PRZYCISKI AKCJI W FAQ (z jednostkami vw)
========================================== */
.faq-btn-wrapper {
    padding: 0 2rem 1.5vw 2rem;
    display: flex;
    justify-content: flex-start;
}

.faq-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.6vw 1.2vw;
    background: rgba(230, 0, 0, 0.05);
    border: 1px solid rgba(230, 0, 0, 0.4);
    color: #ff4d4d;
    font-size: clamp(0.9rem, 0.9vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.6vw;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-action-btn:hover {
    background: #E60000;
    color: #ffffff;
    border-color: #E60000;
    box-shadow: 0 0.4vw 1vw rgba(230, 0, 0, 0.3);
    transform: translateY(-0.15vw);
}

/* Stan Aktywny (Rozwinięty) */
.accordion-item.active {
    border-color: #E60000;
    box-shadow: 0 10px 30px rgba(230,0,0,0.15);
    background-color: rgba(20, 20, 20, 0.95);
}

.accordion-item.active .accordion-header {
    color: #E60000;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
    color: #E60000;
}

.accordion-item.active .accordion-content {
    transition: max-height 0.5s ease-in-out;
}

/* ==========================================
   SEKCJA CTA Z ANIMOWANYMI BUTTONAMI
========================================== */
.faq-cta {
    background: linear-gradient(to top, rgba(230,0,0,0.08), transparent);
    padding: 5rem 0 7rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.cta-heading {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    color: #aaaaaa;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Wspólny styl dla obu super-przycisków */
.cta-btn {
    position: relative;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.cta-btn i {
    font-size: 1.4rem;
}

/* Przycisk Discorda (Fioletowo-Niebieski blask) */
.cta-btn--discord {
    background-color: #5865F2;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
    border: 1px solid #7983F5;
}

.cta-btn--discord .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.cta-btn--discord:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.6);
}

.cta-btn--discord:hover .btn-glow {
    opacity: 1;
    animation: spinGlow 4s linear infinite;
}

/* Przycisk Supportu (Mroczny z czerwoną poświatą) */
.cta-btn--support {
    background-color: #121212;
    border: 1px solid #E60000;
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.2);
}

.cta-btn--support .btn-glow-red {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230,0,0,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.cta-btn--support:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.5);
    background-color: #1a0505;
}

.cta-btn--support:hover .btn-glow-red {
    opacity: 1;
    animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   ANIMACJE WJAZDU
========================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSYWNOŚĆ
========================================== */
@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2.2rem; }
    
    .accordion-header {
        font-size: 1.05rem;
        padding: 1.2rem 1.5rem;
    }
    
    .accordion-content p {
        font-size: 0.95rem;
        padding: 0 1.5rem 3vw 1.5rem; /* Zmodyfikowano pod dodane niżej przyciski */
    }

    .faq-btn-wrapper {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    /* Modyfikacja przycisków wewnątrz FAQ dla małych ekranów (vw/px mix) */
    .faq-action-btn {
        width: 100%;
        justify-content: center;
        padding: 3vw 4vw;
        gap: 1.5vw;
        border-radius: 2vw;
    }

    .faq-cat-title { font-size: 1.4rem; }
    .cta-heading { font-size: 2rem; }
    
    .faq-cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}