/* ============================================================
   KVKK Cerez Banner
   - Ilk ziyarette goster, alttan slide-up
   - Modal: kategorik tercihler
   ============================================================ */

.kvkk-cerez-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    z-index: 999998;
    padding: 10px 24px;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 3px solid #2563eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    z-index: 99999999;
}

.kvkk-cerez-banner.kvkk-aktif {
    transform: translateY(0);
}

.kvkk-banner-icerik {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.kvkk-banner-metin {
    flex: 1 1 480px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.55;
}

.kvkk-banner-metin h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kvkk-banner-metin h3::before {
    content: "🍪";
    font-size: 22px;
}

.kvkk-banner-metin p {
    margin: 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 18px;
}

.kvkk-banner-metin a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}

.kvkk-banner-aksiyon {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    align-items: end;
}

.kvkk-btn {
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.kvkk-btn-primary {
    background: #2563eb;
    color: #fff;
}

.kvkk-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.kvkk-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.kvkk-btn-secondary:hover {
    background: #e5e7eb;
}

.kvkk-btn-ghost {
    background: transparent;
    color: #6b7280;
}

.kvkk-btn-ghost:hover {
    color: #111827;
    background: #f9fafb;
}

/* ===== Modal: Detayli Cerez Ayarlari ===== */
.kvkk-cerez-modal-arka {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.kvkk-cerez-modal-arka.kvkk-aktif {
    display: flex;
}

.kvkk-cerez-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    animation: kvkkModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kvkkModalIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.kvkk-modal-baslik {
    padding: 22px 26px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kvkk-modal-baslik h2 {
    margin: 0;
    font-size: 19px;
    color: #111827;
}

.kvkk-modal-kapat {
    background: none;
    border: none;
    font-size: 26px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.kvkk-modal-icerik {
    padding: 22px 26px;
}

.kvkk-modal-aciklama {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.kvkk-cerez-kategori {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: #fafbfc;
}

.kvkk-kategori-bas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kvkk-kategori-bas h4 {
    margin: 0;
    font-size: 15px;
    color: #111827;
    font-weight: 700;
}

.kvkk-kategori-aciklama {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ===== Yeni Amac Kart Sistemi (IAB TCF tarzi 10 amac) ===== */
.kvkk-amac-uyari {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #1e40af;
}

.kvkk-amac-uyari strong {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.kvkk-amac-uyari em {
    font-style: normal;
    font-weight: 600;
}

.kvkk-amac-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kvkk-amac-kart {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
    overflow: hidden;
}

.kvkk-amac-kart.kvkk-kabul-edildi {
    border-color: #16a34a;
    background: #f0fdf4;
}

.kvkk-amac-kart.kvkk-reddedildi {
    border-color: #d1d5db;
    background: #f9fafb;
}

.kvkk-amac-bas {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.kvkk-amac-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 4px 0;
    font-family: inherit;
}

.kvkk-amac-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
    transition: all 0.2s;
}

.kvkk-amac-kart.kvkk-acik .kvkk-amac-ikon {
    background: #2563eb;
    color: #fff;
}

.kvkk-amac-baslik {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.kvkk-amac-aksiyon {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.kvkk-mini-btn {
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #6b7280;
    transition: all 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
}

.kvkk-mini-red:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.kvkk-mini-kabul:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.kvkk-amac-kart.kvkk-reddedildi .kvkk-mini-red {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.kvkk-amac-kart.kvkk-kabul-edildi .kvkk-mini-kabul {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.kvkk-amac-icerik {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 14px;
}

.kvkk-amac-kart.kvkk-acik .kvkk-amac-icerik {
    max-height: 240px;
    padding: 0 14px 12px 14px;
}

.kvkk-amac-icerik p {
    margin: 0;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

@media (max-width: 640px) {
    .kvkk-amac-bas {
        flex-wrap: wrap;
    }

    .kvkk-amac-toggle {
        flex: 1 1 100%;
        margin-bottom: 6px;
    }

    .kvkk-amac-aksiyon {
        flex: 1 1 100%;
        justify-content: flex-end;
    }

    .kvkk-mini-btn {
        flex: 1;
    }
}

/* Toggle switch */
.kvkk-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.kvkk-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.kvkk-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: 0.3s;
}

.kvkk-toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.kvkk-toggle input:checked+.kvkk-toggle-slider {
    background: #2563eb;
}

.kvkk-toggle input:checked+.kvkk-toggle-slider::before {
    transform: translateX(20px);
}

.kvkk-toggle input:disabled+.kvkk-toggle-slider {
    background: #34d399;
    cursor: not-allowed;
    opacity: 0.7;
}

.kvkk-modal-altbar {
    padding: 18px 26px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 640px) {
    .kvkk-cerez-banner {
        padding: 16px;
    }

    .kvkk-banner-icerik {
        flex-direction: column;
        align-items: stretch;
    }

    .kvkk-banner-metin {
        flex: 1 1 80px;
    }

    .kvkk-banner-aksiyon {
        flex-direction: column;
    }

    .kvkk-btn {
        width: 100%;
    }

    .kvkk-modal-altbar {
        flex-direction: column-reverse;
    }
}