/* =========================================================================
   Çerez onay bandı + tercih modalı (KVKK/GDPR Consent Mode v2)
   Turuncu hub teması (#EA580C). Inline stil YASAK — tüm görsel burada.
   ========================================================================= */

:root {
    --cerez-turuncu: #EA580C;
    --cerez-turuncu-koyu: #C2410C;
}

/* Görünürlük — JS 'cerez-acik' sınıfını ekler/kaldırır. Varsayılan gizli. */
.cerez-bar,
.cerez-modal-overlay {
    display: none;
}
.cerez-bar.cerez-acik,
.cerez-modal-overlay.cerez-acik {
    display: block;
}
.cerez-modal-overlay.cerez-acik {
    display: flex;
}

/* ── Alt bant ────────────────────────────────────────────────────────── */
.cerez-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    padding: 18px 16px;
    animation: cerezYukari 0.28s ease-out;
}
@keyframes cerezYukari {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cerez-bar-ic {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cerez-bar-metin {
    flex: 1 1 420px;
    min-width: 280px;
}
.cerez-bar-baslik {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cerez-bar-baslik svg {
    width: 18px;
    height: 18px;
    color: var(--cerez-turuncu);
    flex-shrink: 0;
}
.cerez-bar-aciklama {
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}
.cerez-bar-aciklama a {
    color: var(--cerez-turuncu);
    text-decoration: underline;
    font-weight: 600;
}

.cerez-bar-butonlar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Butonlar ────────────────────────────────────────────────────────── */
.cerez-btn {
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.cerez-btn-birincil {
    background: var(--cerez-turuncu);
    color: #ffffff;
}
.cerez-btn-birincil:hover { background: var(--cerez-turuncu-koyu); }
.cerez-btn-ikincil {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}
.cerez-btn-ikincil:hover { background: #f8fafc; border-color: #94a3b8; }
.cerez-btn-metin {
    background: transparent;
    color: #475569;
    padding: 10px 12px;
    text-decoration: underline;
}
.cerez-btn-metin:hover { color: var(--cerez-turuncu); }

/* ── Tercih modalı ───────────────────────────────────────────────────── */
.cerez-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(15, 23, 42, 0.5);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cerez-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    animation: cerezModalIn 0.2s ease-out;
}
@keyframes cerezModalIn {
    from { transform: scale(.96); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.cerez-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 12px;
}
.cerez-modal-head h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.cerez-modal-head p {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 0;
    line-height: 1.5;
}
.cerez-modal-kapat {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.cerez-modal-kapat:hover { color: #0f172a; }

.cerez-modal-govde { padding: 8px 24px 4px; }

/* Kategori kartı */
.cerez-kat {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.cerez-kat-bilgi h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}
.cerez-kat-bilgi p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.cerez-kat-zorunlu-etiket {
    font-size: 12px;
    font-weight: 600;
    color: var(--cerez-turuncu);
    white-space: nowrap;
    padding-top: 2px;
}

/* Toggle */
.cerez-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cerez-switch input { opacity: 0; width: 0; height: 0; }
.cerez-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background .18s;
}
.cerez-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .18s;
}
.cerez-switch input:checked + .cerez-slider { background: var(--cerez-turuncu); }
.cerez-switch input:checked + .cerez-slider::before { transform: translateX(18px); }
.cerez-switch input:disabled + .cerez-slider { background: var(--cerez-turuncu); opacity: .55; cursor: not-allowed; }

.cerez-modal-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 12px 24px 22px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

/* ── Mobil ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cerez-bar-ic { flex-direction: column; align-items: stretch; }
    .cerez-bar-butonlar { justify-content: stretch; }
    .cerez-bar-butonlar .cerez-btn { flex: 1 1 auto; text-align: center; }
    .cerez-modal-foot { justify-content: stretch; }
    .cerez-modal-foot .cerez-btn { flex: 1 1 auto; text-align: center; }
}
