/*
 * ============================================================================
 * Dosya    : cerez-bildirimi.css
 * Yolu     : /assets/css/cerez-bildirimi.css
 * Amaç     : Çerez onay bildirimi stilleri
 * HTML'e   : <link rel="stylesheet" href="/assets/css/cerez-bildirimi.css">
 *            (head içinde, styles.css'den SONRA)
 * Bağımlı  : Yok (bağımsız)
 * Kullanan : cerez-onay-sistemi.js
 * ----------------------------------------------------------------------------
 * Tasarım Prensipleri:
 *   - structmod Swiss grid minimal estetiği
 *   - Dark sheet alt banner (tam genişlik)
 *   - Accept ve Reject butonları eşit görünümde (dark pattern yok)
 *   - 480px altı: butonlar dikey stack
 *   - !important kullanılmadı
 *   - Tüm renk ve spacing CSS custom property'lerden okunur
 * ============================================================================
 */

.sm-cerez-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  background: #0a0a0a;
  color: #f2f2f2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}

.sm-cerez-banner.sm-cerez-acik {
  transform: translateY(0);
  opacity: 1;
}

.sm-cerez-banner.sm-cerez-kapaniyor {
  transform: translateY(100%);
  opacity: 0;
}

.sm-cerez-icerik {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.sm-cerez-metin {
  min-width: 0;
}

.sm-cerez-baslik {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sm-cerez-mesaj {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
}

.sm-cerez-butonlar {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sm-cerez-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f2f2f2;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.sm-cerez-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.sm-cerez-btn:focus-visible {
  outline: 2px solid #ff5a1f;
  outline-offset: 2px;
}

.sm-cerez-btn-kabul {
  background: #ff5a1f;
  border-color: #ff5a1f;
  color: #ffffff;
}

.sm-cerez-btn-kabul:hover {
  background: #e64a0f;
  border-color: #e64a0f;
}

.sm-cerez-btn-kaydet {
  background: #ff5a1f;
  border-color: #ff5a1f;
  color: #ffffff;
  width: 100%;
}

.sm-cerez-btn-kaydet:hover {
  background: #e64a0f;
  border-color: #e64a0f;
}

/* ─────── DETAY PANELİ ─────── */

.sm-cerez-detay {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.sm-cerez-kategori {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-cerez-kategori:last-of-type {
  border-bottom: none;
}

.sm-cerez-kategori-ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.sm-cerez-kategori-ust strong {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.sm-cerez-kategori-aciklama {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 720px;
}

.sm-cerez-zorunlu {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* ─────── TOGGLE SWITCH ─────── */

.sm-cerez-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.sm-cerez-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sm-cerez-switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: background 0.18s ease;
}

.sm-cerez-switch span::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.sm-cerez-switch input:checked + span {
  background: #ff5a1f;
}

.sm-cerez-switch input:checked + span::before {
  transform: translateX(16px);
}

.sm-cerez-switch input:focus-visible + span {
  outline: 2px solid #ff5a1f;
  outline-offset: 2px;
}

.sm-cerez-detay-alt {
  margin-top: 18px;
}

/* ─────── MOBİL (480px altı) ─────── */

@media (max-width: 768px) {
  .sm-cerez-icerik {
    grid-template-columns: 1fr;
    padding: 20px 20px;
    gap: 16px;
  }

  .sm-cerez-butonlar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .sm-cerez-btn-ozellestir {
    grid-column: 1 / -1;
  }

  .sm-cerez-detay {
    padding: 16px 20px 20px;
  }

  .sm-cerez-baslik {
    font-size: 13px;
  }

  .sm-cerez-mesaj {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .sm-cerez-butonlar {
    grid-template-columns: 1fr;
  }

  .sm-cerez-btn-ozellestir {
    grid-column: auto;
  }
}

/* ─────── HAREKET TERCİHİ ─────── */

@media (prefers-reduced-motion: reduce) {
  .sm-cerez-banner,
  .sm-cerez-btn,
  .sm-cerez-switch span,
  .sm-cerez-switch span::before {
    transition: none;
  }
}
