﻿/* ============================================================
   SSS (Sıkça Sorulan Sorular) — ORTAK STİLLER
   Tüm sayfalarda (Ürün, Çözüm, Kurumsal/Hakkımızda, Misyon,
   Vizyon, İş Ortaklığı, vb.) aynı görünüm ve davranışı sağlar.
   ============================================================ */

/* ============================================================
   SAYFA DETAY (SSS'in ÜSTÜNDEKİ İÇERİK) — FERAHLATMA
   ============================================================ */
.page-detail {
    padding: 32px 0 56px;
}

.page-detail__container {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 0 32px; /* ← kenarlardan içeri boşluk */
}

.page-detail__hero {
    margin-bottom: 28px;
    padding: 0 8px; /* ← başlık alanına nefes */
}

.page-detail__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.page-detail__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    color: #111827;
}

.page-detail__summary {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
}

.page-detail__card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px; /* ← kart içi ferahlık */
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.page-detail__content {
    color: #111827;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

    .page-detail__content > p {
        margin: 0 0 18px;
    }

        .page-detail__content > p:last-child {
            margin-bottom: 0;
        }

.page-detail__empty {
    color: #6b7280;
    font-style: italic;
}

.page-detail__actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: grid;
    gap: 16px;
}

.page-detail__cta-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.page-detail__action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-detail__action-btn,
.page-detail__back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-detail__action-btn {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

    .page-detail__action-btn:hover {
        background: #1f2937;
        border-color: #1f2937;
    }

.page-detail__back-link {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

    .page-detail__back-link:hover {
        background: #f9fafb;
    }

/* ============================================================
   SSS — BÖLÜM KAPSAYICI
   ============================================================ */
.sss-modern {
    padding: 60px 0;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

/* Kart içinde kullanıldığında daha kompakt */
.page-detail .sss-modern {
    padding: 40px 0 20px;
    background: transparent;
}

/* ---------- BAŞLIK ALANI ---------- */
.sss-modern .sss-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 24px; /* ← kenarlardan içeri boşluk */
    max-width: 720px; /* ← çok geniş ekranda yazı dağılmasın */
    margin-left: auto;
    margin-right: auto;
}

.page-detail .sss-modern .sss-header {
    margin-bottom: 32px;
    padding: 0 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.sss-modern .sss-header .sss-eyebrow {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sss-modern .sss-header .sss-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.page-detail .sss-modern .sss-header .sss-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.sss-modern .sss-header .sss-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 560px; /* ← 600 → 560 */
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 8px; /* ← dar ekranda nefes */
}

.page-detail .sss-modern .sss-header .sss-subtitle {
    font-size: 1rem;
}

/* ---------- GRID ---------- */
.sss-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Kart içinde tam genişlik isterseniz (opsiyonel) */
.page-detail__card .sss-grid {
    max-width: 100%;
}

/* ---------- SORU KARTI ---------- */
.sss-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .sss-item:hover {
        border-color: rgba(245, 158, 11, 0.3);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
    }

    .sss-item.active {
        border-color: rgba(245, 158, 11, 0.3);
        background: #fffbeb;
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
    }

/* Başlık sarmalayıcı (erişilebilirlik için h3 içinde buton) */
.sss-question-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ---------- SORU BUTONU ---------- */
.sss-item .sss-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    gap: 16px;
}

    .sss-item .sss-question:hover {
        color: #d97706;
    }

    .sss-item .sss-question .sss-question-text {
        flex: 1;
        font-size: 1.05rem;
        line-height: 1.5;
    }

    /* ---------- OK İKONU ---------- */
    .sss-item .sss-question .sss-icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fef3c7;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.35s ease;
        font-size: 16px;
        color: #d97706;
    }

        .sss-item .sss-question .sss-icon i {
            display: inline-block !important;
            transition: transform 0.35s ease;
            font-size: 16px;
        }

.sss-item.active .sss-question .sss-icon {
    background: #f59e0b;
    color: #ffffff;
}

    /* Açıkken ok yukarı bakar (180° dönüş) */
    .sss-item.active .sss-question .sss-icon i {
        transform: rotate(180deg);
    }

/* ---------- CEVAP PANELİ ---------- */
.sss-item .sss-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
}

.sss-item.active .sss-answer {
    max-height: 800px;
    padding: 0 24px 24px 24px;
}

/* hidden attribute ile animasyon uyumu */
.sss-item .sss-answer[hidden] {
    display: block;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
}

.sss-item .sss-answer-content {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
    padding-top: 4px;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
}

    .sss-item .sss-answer-content p {
        margin-bottom: 12px;
    }

        .sss-item .sss-answer-content p:last-child {
            margin-bottom: 0;
        }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

    /* Sayfa detay ferahlatma */
    .page-detail {
        padding: 22px 0 40px;
    }

    .page-detail__container {
        padding: 0 20px;
    }

    .page-detail__summary {
        font-size: 16px;
    }

    .page-detail__card {
        padding: 20px;
        border-radius: 14px;
    }

    .page-detail__action-row {
        flex-direction: column;
    }

    /* SSS */
    .sss-modern {
        padding: 40px 0;
    }

    .page-detail .sss-modern {
        padding: 30px 0 10px;
    }

    .sss-modern .sss-header {
        margin-bottom: 32px;
        padding: 0 16px;
        max-width: 100%;
    }

    .page-detail .sss-modern .sss-header {
        margin-bottom: 24px;
        padding: 0 12px;
        max-width: 100%;
    }

    .sss-modern .sss-header .sss-title {
        font-size: 1.6rem;
    }

    .page-detail .sss-modern .sss-header .sss-title {
        font-size: 1.4rem;
    }

    .sss-modern .sss-header .sss-subtitle {
        font-size: 0.95rem;
    }

    .sss-item .sss-question {
        padding: 14px 18px;
    }

        .sss-item .sss-question .sss-question-text {
            font-size: 0.95rem;
        }

    .sss-item.active .sss-answer {
        padding: 0 18px 18px 18px;
    }

    .sss-item .sss-answer[hidden] {
        padding: 0 18px;
    }

    .sss-item .sss-answer-content {
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {

    .sss-modern .sss-header .sss-title {
        font-size: 1.35rem;
    }

    .page-detail .sss-modern .sss-header .sss-title {
        font-size: 1.25rem;
    }

    .sss-item .sss-question {
        padding: 12px 14px;
    }

        .sss-item .sss-question .sss-question-text {
            font-size: 0.88rem;
        }

        .sss-item .sss-question .sss-icon {
            width: 30px;
            height: 30px;
            font-size: 14px;
        }

            .sss-item .sss-question .sss-icon i {
                font-size: 14px;
            }
}
