/* ==========================================================================
   Çerez (Cookie) Onay Bandı — KVKK + Google Consent Mode v2
   Kaynak: Venüs Ajans standart bileşeni; Eskin Elektrik kimliğine uyarlandı.
   Renkler style.css içindeki :root değişkenlerinden okunur.
   ========================================================================== */

#vc-consent { position: fixed; inset: auto 0 0 0; z-index: 1060; font-family: var(--font-sans); }

.vc-banner {
  max-width: 980px; margin: 0 auto 20px; padding: 1.375rem 1.5rem;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}
.vc-banner.vc-open { display: block; animation: vc-rise .35s var(--ease) both; }
@keyframes vc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.vc-banner h2 { margin: 0 0 .375rem; font-size: var(--fs-base); font-weight: 700; color: var(--ink); }
.vc-banner p  { margin: 0 0 .875rem; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-3); }
.vc-banner a  { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.vc-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.vc-btn {
  appearance: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  font-size: var(--fs-ui); font-weight: 600; min-height: 44px; padding: .625rem 1.25rem;
  border-radius: var(--r-sm); transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.vc-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vc-btn-accept { background: var(--brand); color: #fff; border-color: var(--brand); }
.vc-btn-accept:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.vc-btn-reject { background: #fff; color: var(--ink); border-color: var(--line-2); }
.vc-btn-reject:hover { border-color: var(--ink); }
.vc-btn-prefs  { background: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding-inline: .5rem; }
.vc-btn-prefs:hover { color: var(--brand); }

/* ---------- Tercih modalı ---------- */
.vc-overlay {
  position: fixed; inset: 0; background: rgba(20, 24, 29, .58);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1070;
}
.vc-overlay.vc-open { display: flex; }
.vc-modal {
  background: #fff; border-radius: var(--r-lg);
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 1.625rem;
}
.vc-modal.vc-open { animation: vc-rise .3s var(--ease) both; }
.vc-modal h3 { margin: 0 0 .25rem; font-size: var(--fs-xl); color: var(--ink); }
.vc-modal > p { margin: 0 0 1.125rem; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.55; }

.vc-cat { border: 1px solid var(--line); border-radius: var(--r); padding: .875rem 1rem; margin-bottom: .625rem; }
.vc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.vc-cat-head strong { font-size: var(--fs-ui); color: var(--ink); }
.vc-cat p { margin: .5rem 0 0; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.55; }
.vc-cat .vc-always { font-size: var(--fs-xs); font-weight: 600; color: var(--state-ok); white-space: nowrap; }

.vc-switch { position: relative; width: 44px; height: 24px; flex: none; }
.vc-switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; margin: 0; }
.vc-slider { position: absolute; inset: 0; background: #c3cbd4; border-radius: 24px; transition: background .15s var(--ease); pointer-events: none; }
.vc-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s var(--ease); }
.vc-switch input:checked + .vc-slider { background: var(--brand); }
.vc-switch input:checked + .vc-slider::before { transform: translateX(20px); }
.vc-switch input:focus-visible + .vc-slider { outline: 2px solid var(--brand); outline-offset: 2px; }

.vc-modal-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.125rem; }

@media (max-width: 560px) {
  .vc-banner { margin: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
  .vc-actions .vc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-banner.vc-open, .vc-modal.vc-open { animation: none; }
}
