/* ==========================================================================
   FAQ PAGE — Dedicated Module
   pages.css'teki temel .faq-* kurallarını override eder.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PAGE HEADER
   -------------------------------------------------------------------------- */
.faq-main {
    flex: 1;
    padding: 96px 20px 120px;
}

.faq-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.faq-title {
    text-align: center;
    padding-top: 0;
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-white);
}

.faq-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 64px;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   2. ACCORDION CONTAINER
   -------------------------------------------------------------------------- */
.faq-container {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   3. ACCORDION ITEM
   -------------------------------------------------------------------------- */
.faq-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition:
        border-color  0.35s ease,
        box-shadow    0.35s ease,
        background    0.35s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.faq-item.is-open {
    border-color: rgba(212, 163, 115, 0.3);
    box-shadow: 0 6px 32px rgba(212, 163, 115, 0.06);
    background: rgba(212, 163, 115, 0.03);
}

/* --------------------------------------------------------------------------
   4. QUESTION BUTTON
   -------------------------------------------------------------------------- */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 30px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Montserrat', sans-serif;
    user-select: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 14px;
}

.faq-item.is-open .faq-question {
    color: var(--text-white);
}

/* --------------------------------------------------------------------------
   5. ICON — Rotation animasyonu
   -------------------------------------------------------------------------- */
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition:
        transform      0.38s cubic-bezier(0.4, 0, 0.2, 1),
        background     0.3s ease,
        border-color   0.3s ease;
}

/* Yatay çizgi — her zaman görünür */
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-gray);
    border-radius: 2px;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
    width: 10px;
    height: 1.5px;
}

/* Dikey çizgi — kapalıyken görünür, açıkken kaybolur */
.faq-icon::after {
    width: 1.5px;
    height: 10px;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.faq-item.is-open .faq-icon {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background: var(--black);
}

/* --------------------------------------------------------------------------
   6. ANSWER PANEL — ease-in-out animasyon
   -------------------------------------------------------------------------- */
.faq-answer {
    overflow: hidden;
    height: 0;
    transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 30px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.95;
    font-family: 'Montserrat', sans-serif;
}

.faq-answer-inner p {
    margin: 0;
    padding-top: 20px;
}

.faq-answer-inner a {
    color: var(--accent);
    border-bottom: 1px solid rgba(212, 163, 115, 0.3);
    transition: border-color 0.25s ease, opacity 0.25s ease;
}

.faq-answer-inner a:hover {
    opacity: 0.75;
    border-color: var(--accent);
}

.faq-answer-inner strong {
    color: var(--text-white);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. LEGAL VARIANT — Esnaf Muafiyeti / Fatura FAQ
   -------------------------------------------------------------------------- */
.faq-item--legal {
    border-color: rgba(212, 163, 115, 0.12);
}

.faq-item--legal:hover {
    border-color: rgba(212, 163, 115, 0.22);
    background: rgba(212, 163, 115, 0.025);
}

.faq-question-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.faq-legal-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(212, 163, 115, 0.1);
    border: 1px solid rgba(212, 163, 115, 0.28);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item--legal.is-open .faq-legal-badge {
    background: rgba(212, 163, 115, 0.18);
    border-color: rgba(212, 163, 115, 0.45);
}

.faq-answer-inner p + p {
    padding-top: 14px;
}

/* --------------------------------------------------------------------------
   8. FOOTER CTA
   -------------------------------------------------------------------------- */
.faq-footer {
    max-width: 760px;
    margin: 56px auto 0;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-footer p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.faq-footer a.faq-cta {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid rgba(212, 163, 115, 0.35);
    padding-bottom: 3px;
    transition: opacity 0.25s ease, letter-spacing 0.3s ease;
}

.faq-footer a.faq-cta:hover {
    opacity: 0.7;
    letter-spacing: 4px;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .faq-main {
        padding: 64px 16px 80px;
    }

    .faq-title {
        letter-spacing: 2px;
    }

    .faq-question {
        padding: 20px 22px;
        font-size: 0.76rem;
        letter-spacing: 0.8px;
    }

    .faq-answer-inner {
        padding: 0 22px 24px;
        font-size: 0.86rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }
}
