/* ============================================================
   cerez.css — KVKK cerez onay penceresi
   Palet: #6b8ba4 vurgu · #14100c koyu · #f7f6f4 acik
   ============================================================ */

.cerez-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
    background: #14100c; color: #e8e4de;
    border-top: 3px solid #6b8ba4;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, .28);
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.cerez-bar.acik { transform: translateY(0); }

.cerez-ic {
    max-width: 1200px; margin: 0 auto;
    padding: 22px 26px;
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cerez-metin { flex: 1 1 420px; min-width: 0; }
.cerez-metin h2 {
    font-family: 'Playfair Display', serif;
    font-size: 19px; color: #fff; margin: 0 0 7px;
}
.cerez-metin p {
    font-family: 'Jost', sans-serif;
    font-size: 13.5px; line-height: 1.7; color: #aba59f; margin: 0;
}
.cerez-metin a { color: #9fb6c9; text-decoration: underline; }
.cerez-metin a:hover { color: #fff; }

/* Butonlar — Kabul ve Reddet esit gorunurlukte (KVKK sarti) */
.cerez-dugmeler { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cerez-dugmeler button {
    font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500;
    letter-spacing: .3px; border-radius: 40px; padding: 12px 26px;
    cursor: pointer; border: 1px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
    min-width: 128px;
}
.cerez-kabul { background: #6b8ba4; color: #fff; }
.cerez-kabul:hover { background: #7d9ab1; }
.cerez-ret { background: transparent; color: #e8e4de; border-color: #4a443c; }
.cerez-ret:hover { background: #221e18; border-color: #6b8ba4; }
.cerez-ayar {
    background: transparent; color: #aba59f;
    border-color: transparent; min-width: auto; padding: 12px 12px;
    text-decoration: underline;
}
.cerez-ayar:hover { color: #fff; }
.cerez-bar button:focus-visible,
.cerez-panel button:focus-visible,
.cerez-panel input:focus-visible {
    outline: 2px solid #6b8ba4; outline-offset: 3px;
}

/* ---- Ayrintili tercih paneli ---- */
.cerez-panel {
    display: none;
    border-top: 1px solid #2b261f;
    background: #1a1610;
}
.cerez-panel.acik { display: block; }
.cerez-panel-ic { max-width: 1200px; margin: 0 auto; padding: 8px 26px 24px; }

.cerez-grup {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 17px 0; border-bottom: 1px solid #2b261f;
}
.cerez-grup:last-of-type { border-bottom: 0; }
.cerez-grup-metin { flex: 1; }
.cerez-grup h3 {
    font-family: 'Jost', sans-serif; font-size: 14.5px; font-weight: 600;
    color: #fff; margin: 0 0 5px;
}
.cerez-grup p {
    font-family: 'Jost', sans-serif; font-size: 13px; line-height: 1.65;
    color: #8d857a; margin: 0;
}
.cerez-zorunlu-etiket {
    font-family: 'Jost', sans-serif; font-size: 11.5px;
    color: #6b8ba4; white-space: nowrap; padding-top: 2px;
}

/* Anahtar */
.cerez-anahtar { position: relative; flex-shrink: 0; padding-top: 1px; }
.cerez-anahtar input {
    position: absolute; opacity: 0; width: 46px; height: 25px; margin: 0; cursor: pointer;
}
.cerez-anahtar span {
    display: block; width: 46px; height: 25px; border-radius: 25px;
    background: #3a342c; position: relative; transition: background-color .25s ease;
    pointer-events: none;
}
.cerez-anahtar span::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 19px; height: 19px; border-radius: 50%; background: #8d857a;
    transition: transform .25s ease, background-color .25s ease;
}
.cerez-anahtar input:checked + span { background: #3d5666; }
.cerez-anahtar input:checked + span::after { transform: translateX(21px); background: #6b8ba4; }
.cerez-anahtar input:focus-visible + span { outline: 2px solid #6b8ba4; outline-offset: 3px; }

.cerez-panel-alt {
    display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px;
}
.cerez-kaydet {
    font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500;
    background: #6b8ba4; color: #fff; border: 0; border-radius: 40px;
    padding: 12px 28px; cursor: pointer; transition: background-color .25s ease;
}
.cerez-kaydet:hover { background: #7d9ab1; }

/* Banner acikken WhatsApp butonu yukari kaysin */
body.cerez-gorunur .whatsapp-sticky { bottom: 175px; transition: bottom .4s ease; }

/* ---- Duyarli ---- */
@media (max-width: 991px) {
    .cerez-ic { padding: 20px; gap: 18px; }
    .cerez-dugmeler { width: 100%; }
    .cerez-kabul, .cerez-ret { flex: 1 1 0; }
    .cerez-ayar { flex: 1 1 100%; order: 3; }
    body.cerez-gorunur .whatsapp-sticky { bottom: 230px; }
}
@media (max-width: 767px) {
    .cerez-bar { max-height: 82vh; overflow-y: auto; }
    .cerez-panel-ic { padding: 8px 20px 22px; }
    .cerez-grup { gap: 12px; }
    .cerez-panel-alt { justify-content: stretch; }
    .cerez-kaydet { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cerez-bar, .cerez-anahtar span, .cerez-anahtar span::after,
    body.cerez-gorunur .whatsapp-sticky { transition: none; }
}

/* ---- WhatsApp sabit dugmesi ----
   Onceden her sayfaya ayri ayri gomuluydu; ortak dosyaya alindi. */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.25);
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
    animation: wa-pulse 2.8s ease-in-out infinite;
}
.whatsapp-sticky svg { width: 30px; height: 30px; transition: transform 0.3s ease; }
.whatsapp-sticky:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.3);
    color: #fff;
    text-decoration: none;
    animation: none;
}
.whatsapp-sticky:hover svg { transform: rotate(-8deg) scale(1.05); }
.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1a1a1a;
}
.whatsapp-sticky:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
    50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-sticky { animation: none; }
}
