/* ==========================================
   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;
}

/* ==========================================
   WYSZUKIWARKA PYTAŃ (HERO)
========================================== */
.faq-search {
    position: relative;
    max-width: 620px;
    margin: 2.2rem auto 0 auto;
    display: flex;
    align-items: center;
}

.faq-search > i.fa-magnifying-glass {
    position: absolute;
    left: 22px;
    color: #E60000;
    font-size: 1rem;
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    padding: 1.05rem 3.4rem 1.05rem 3.2rem;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.faq-search input::placeholder { color: #666; }

.faq-search input:focus {
    border-color: rgba(230, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.1), 0 10px 30px rgba(0,0,0,0.4);
}

.faq-search-clear {
    position: absolute;
    right: 12px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.faq-search-clear.visible { display: inline-flex; }
.faq-search-clear:hover { background: rgba(230,0,0,0.2); color: #E60000; }

/* ==========================================
   STATYSTYKI W HERO
========================================== */
.faq-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 1.4rem;
    color: #888;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.faq-stat strong { color: #ffffff; font-weight: 700; margin-right: 4px; }
.faq-stat i { color: #E60000; margin-right: 5px; }

.faq-stat-sep {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* ==========================================
   NAWIGACJA PO KATEGORIACH (CHIPSY)
========================================== */
.faq-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1.8rem;
}

.faq-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #bbbbbb;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.faq-nav-chip i { color: #E60000; font-size: 0.85rem; }

.faq-nav-chip:hover {
    background: rgba(230, 0, 0, 0.1);
    border-color: rgba(230, 0, 0, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Kotwice kategorii — odsuwamy od sticky navbara */
.faq-category {
    scroll-margin-top: 120px;
}

html { scroll-behavior: smooth; }

/* Licznik pytań przy tytule kategorii */
.faq-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    margin-left: auto;
    background: rgba(230, 0, 0, 0.12);
    border: 1px solid rgba(230, 0, 0, 0.35);
    border-radius: 999px;
    color: #E60000;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ==========================================
   BRAK WYNIKÓW WYSZUKIWANIA
========================================== */
.faq-noresults {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.faq-noresults i.fa-ghost {
    font-size: 3rem;
    color: rgba(230, 0, 0, 0.5);
    margin-bottom: 1.2rem;
    display: block;
}

.faq-noresults p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.faq-noresults .faq-action-btn {
    margin: 0 auto;
    display: inline-flex;
}

/* ==========================================
   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;
    }

    .faq-search { margin-top: 1.6rem; }
    .faq-search input { font-size: 0.95rem; padding: 0.95rem 3.2rem 0.95rem 3rem; }
    .faq-nav { gap: 8px; }
    .faq-nav-chip { font-size: 0.8rem; padding: 8px 12px; }
    .faq-stats { font-size: 0.82rem; gap: 10px; }
    .faq-cat-count { min-width: 26px; height: 26px; font-size: 0.78rem; }
}