/* Çerez onay banner'ı — Ege Orman Vakfı teması (yeşil #789b3e / #1e5c37, Barlow) */
#vc-consent {
  --vc-green: #789b3e;        /* site ana yeşili */
  --vc-green-dark: #1e5c37;   /* koyu yeşil */
  --vc-green-soft: #eef3e4;   /* açık yeşil zemin */
  --vc-ink: #232424;
  --vc-muted: #5b605b;
  --vc-line: #dde4d3;
  --vc-white: #fff;
  --vc-radius: 8px;
  --vc-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  position: fixed; inset: auto 0 0 0; z-index: 99999;
  font-family: 'Barlow', sans-serif; pointer-events: none;
}
#vc-consent * { box-sizing: border-box; }

/* ---------- Banner ---------- */
#vc-consent .vc-banner {
  max-width: 980px; margin: 0 auto 20px; padding: 22px 24px;
  background: var(--vc-white); border: 1px solid var(--vc-line); border-top: 4px solid var(--vc-green);
  border-radius: var(--vc-radius); box-shadow: var(--vc-shadow);
  display: none; pointer-events: auto;
}
#vc-consent .vc-banner.vc-open { display: block; animation: vc-rise .35s ease both; }
@keyframes vc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #vc-consent .vc-banner.vc-open, #vc-consent .vc-modal.vc-open { animation: none; }
}

#vc-consent h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--vc-green-dark); line-height: 1.3; }
#vc-consent .vc-banner p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--vc-muted); }
#vc-consent .vc-banner a { color: var(--vc-green-dark); text-decoration: underline; }
#vc-consent .vc-banner a:hover { color: var(--vc-green); }

#vc-consent .vc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#vc-consent .vc-btn {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; line-height: 1.2; padding: 11px 22px; border-radius: 6px;
  border: 2px solid var(--vc-green-dark); transition: background .15s ease, color .15s ease;
}
#vc-consent .vc-btn:focus-visible { outline: 3px solid var(--vc-green); outline-offset: 2px; }
/* "Kabul" ve "Reddet" aynı boyut ve görünürlükte (KVKK / GDPR) */
#vc-consent .vc-btn-accept { background: var(--vc-green-dark); color: var(--vc-white); }
#vc-consent .vc-btn-accept:hover { background: var(--vc-green); border-color: var(--vc-green); }
#vc-consent .vc-btn-reject { background: var(--vc-white); color: var(--vc-green-dark); }
#vc-consent .vc-btn-reject:hover { background: var(--vc-green-soft); }
#vc-consent .vc-btn-prefs {
  background: transparent; border-color: transparent; color: var(--vc-green-dark);
  text-decoration: underline; padding-left: 8px; padding-right: 8px;
}
#vc-consent .vc-btn-prefs:hover { color: var(--vc-green); }

/* ---------- Tercih modalı ---------- */
#vc-consent .vc-overlay {
  position: fixed; inset: 0; background: rgba(20, 38, 28, 0.6);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100000; pointer-events: auto;
}
#vc-consent .vc-overlay.vc-open { display: flex; }
#vc-consent .vc-modal {
  background: var(--vc-white); border-radius: var(--vc-radius); border-top: 4px solid var(--vc-green);
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--vc-shadow); padding: 26px;
}
#vc-consent .vc-modal.vc-open { animation: vc-rise .3s ease both; }
#vc-consent .vc-modal h3 { margin: 0 0 4px; font-size: 21px; font-weight: 700; color: var(--vc-green-dark); }
#vc-consent .vc-modal > p { margin: 0 0 18px; font-size: 14.5px; color: var(--vc-muted); line-height: 1.5; }

#vc-consent .vc-cat { border: 1px solid var(--vc-line); border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; }
#vc-consent .vc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#vc-consent .vc-cat-head strong { font-size: 16px; color: var(--vc-ink); }
#vc-consent .vc-cat p { margin: 8px 0 0; font-size: 14px; color: var(--vc-muted); line-height: 1.5; }
#vc-consent .vc-always { font-size: 13px; font-weight: 600; color: var(--vc-green); white-space: nowrap; }

/* Anahtar */
#vc-consent .vc-switch { position: relative; width: 46px; height: 25px; flex: none; margin: 0; }
#vc-consent .vc-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; margin: 0; z-index: 1; }
#vc-consent .vc-slider { position: absolute; inset: 0; background: #b9c2b0; border-radius: 25px; transition: background .15s ease; pointer-events: none; }
#vc-consent .vc-slider::before {
  content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px;
  background: var(--vc-white); border-radius: 50%; transition: transform .15s ease;
}
#vc-consent .vc-switch input:checked + .vc-slider { background: var(--vc-green-dark); }
#vc-consent .vc-switch input:checked + .vc-slider::before { transform: translateX(21px); }
#vc-consent .vc-switch input:focus-visible + .vc-slider { outline: 3px solid var(--vc-green); outline-offset: 2px; }

#vc-consent .vc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }

/* Footer'daki "Çerez Tercihleri" bağlantısı site stilini korur */

@media (max-width: 560px) {
  #vc-consent .vc-banner { margin: 0; border-radius: var(--vc-radius) var(--vc-radius) 0 0; max-height: 82vh; overflow-y: auto; }
  #vc-consent .vc-actions .vc-btn { flex: 1 1 100%; text-align: center; }
}
