/* ==========================================================================
   Stoeger – Çerez Onay Yönetimi (Cookie Consent)
   Bağımsız stil dosyası. Bootstrap / FontAwesome gerektirmez.
   Tüm sınıflar "scc-" ön ekiyle izole edilmiştir; site stilleriyle çakışmaz.
   Marka rengi: #013e7f  (theme.min.css --primary)
   ========================================================================== */

.scc-root {
  --scc-brand: #013e7f;
  --scc-brand-dark: #01254c;
  --scc-text: #221f1f;
  --scc-muted: #6b7280;
  --scc-border: #e3e7ec;
  --scc-bg: #ffffff;
  --scc-bg-soft: #f6f8fa;
  --scc-radius: 10px;
  --scc-shadow: 0 10px 40px rgba(2, 20, 43, .22);

  position: relative;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--scc-text);
  -webkit-font-smoothing: antialiased;
}

.scc-root *,
.scc-root *::before,
.scc-root *::after { box-sizing: border-box; }

.scc-root button { font-family: inherit; }

.scc-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.scc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.scc-btn:focus-visible {
  outline: 3px solid rgba(1, 62, 127, .45);
  outline-offset: 2px;
}

.scc-btn--primary {
  background-color: var(--scc-brand);
  border-color: var(--scc-brand);
  color: #fff;
}
.scc-btn--primary:hover { background-color: var(--scc-brand-dark); border-color: var(--scc-brand-dark); color: #fff; }

.scc-btn--outline {
  background-color: #fff;
  border-color: var(--scc-brand);
  color: var(--scc-brand);
}
.scc-btn--outline:hover { background-color: var(--scc-brand); color: #fff; }

.scc-btn--ghost {
  background-color: transparent;
  border-color: #c9d1da;
  color: #3e3c37;
}
.scc-btn--ghost:hover { background-color: var(--scc-bg-soft); border-color: #a9b4c0; color: var(--scc-text); }

/* --------------------------------------------------------------------------
   Alt bant (banner)
   -------------------------------------------------------------------------- */
.scc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--scc-bg);
  border-top: 3px solid var(--scc-brand);
  box-shadow: 0 -6px 28px rgba(2, 20, 43, .16);
  padding: 18px 20px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.scc-banner.scc-is-open { transform: translateY(0); }

.scc-banner__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.scc-banner__body { flex: 1 1 auto; min-width: 0; }

.scc-banner__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--scc-brand);
}

.scc-banner__text {
  margin: 0;
  font-size: 13.5px;
  color: #4b5563;
}

.scc-banner__text a {
  color: var(--scc-brand);
  font-weight: 600;
  text-decoration: underline;
}

.scc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Tercih penceresi (modal)
   -------------------------------------------------------------------------- */
.scc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 43, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.scc-overlay.scc-is-open { opacity: 1; visibility: visible; }

.scc-modal {
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 40px);
  background: var(--scc-bg);
  border-radius: var(--scc-radius);
  box-shadow: var(--scc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  transition: transform .25s ease;
}
.scc-overlay.scc-is-open .scc-modal { transform: none; }

.scc-modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--scc-brand);
  color: #fff;
}

.scc-modal__title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
}

.scc-modal__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease;
}
.scc-modal__close:hover { background: rgba(255, 255, 255, .3); }

/* Sekmeler – uzun içerikli panellerde ezilmemesi için flex-shrink kapalı */
.scc-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 14px;
  background: var(--scc-bg-soft);
  border-bottom: 1px solid var(--scc-border);
  overflow-x: auto;
  overflow-y: hidden;
}

.scc-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 16px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--scc-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.scc-tab:hover { color: var(--scc-text); }
.scc-tab[aria-selected="true"] {
  color: var(--scc-brand);
  border-bottom-color: var(--scc-brand);
}

.scc-modal__body {
  flex: 1 1 auto;
  min-height: 0; /* flex item'ın taşan içerikle büyümesini engeller -> kaydırma çalışır */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px;
}

.scc-panel[hidden] { display: none; }

.scc-panel__intro {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: #4b5563;
}

/* Kategori kartları */
.scc-cat {
  border: 1px solid var(--scc-border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}

.scc-cat__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}

.scc-cat__info { flex: 1 1 auto; min-width: 0; }

.scc-cat__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--scc-text);
}

.scc-cat__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e8edf3;
  color: #45566b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.scc-cat__desc {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--scc-muted);
}

/* Aç / kapa anahtarı */
.scc-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  width: 50px;
  height: 27px;
  margin-top: 2px;
}

.scc-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.scc-switch__track {
  position: absolute;
  inset: 0;
  background: #c3ccd6;
  border-radius: 27px;
  transition: background-color .2s ease;
  pointer-events: none;
}

.scc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}

.scc-switch input:checked + .scc-switch__track { background: var(--scc-brand); }
.scc-switch input:checked + .scc-switch__track::after { transform: translateX(23px); }

.scc-switch input:focus-visible + .scc-switch__track {
  outline: 3px solid rgba(1, 62, 127, .4);
  outline-offset: 2px;
}

.scc-switch input:disabled { cursor: not-allowed; }
.scc-switch input:disabled + .scc-switch__track { background: #9fb3c8; opacity: .75; }

/* Detay aç/kapa */
.scc-cat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--scc-brand);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.scc-cat__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.scc-cat__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }

.scc-cat__detail {
  border-top: 1px solid var(--scc-border);
  padding: 4px 16px 14px;
  background: var(--scc-bg-soft);
}
.scc-cat__detail[hidden] { display: none; }

.scc-cat__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--scc-muted);
}

/* Çerez tabloları */
.scc-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--scc-border);
  border-radius: 6px;
  background: #fff;
}

.scc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.scc-table th,
.scc-table td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--scc-border);
}

.scc-table thead th {
  background: #eef2f6;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

.scc-table tbody tr:last-child td { border-bottom: 0; }

.scc-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--scc-brand);
  word-break: break-all;
}

/* Aydınlatma metni sekmesi */
.scc-legal { font-size: 13.5px; color: #3f4854; }
.scc-legal h4 {
  margin: 20px 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--scc-brand);
}
.scc-legal h4:first-child { margin-top: 0; }
.scc-legal p { margin: 0 0 10px; }
.scc-legal ul { margin: 0 0 10px; padding-left: 20px; }
.scc-legal li { margin-bottom: 5px; }
.scc-legal a { color: var(--scc-brand); font-weight: 600; text-decoration: underline; }
.scc-legal__files {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--scc-bg-soft);
  border: 1px solid var(--scc-border);
  border-radius: 8px;
}
.scc-legal__files strong { display: block; margin-bottom: 8px; color: var(--scc-text); }

/* Modal alt bar */
.scc-modal__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--scc-bg-soft);
  border-top: 1px solid var(--scc-border);
}
.scc-modal__foot .scc-btn--save { margin-left: auto; }

/* --------------------------------------------------------------------------
   Yeniden açma butonu (sayfanın sol altında küçük buton)
   -------------------------------------------------------------------------- */
.scc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--scc-brand);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(2, 20, 43, .3);
  color: #fff;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease, transform .2s ease;
}
.scc-reopen:hover { opacity: 1; transform: translateY(-2px); }
.scc-reopen svg { width: 24px; height: 24px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Duyarlı (responsive) düzen
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .scc-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .scc-banner__actions { flex-wrap: wrap; }
  .scc-banner__actions .scc-btn { flex: 1 1 auto; }
}

@media (max-width: 575.98px) {
  .scc-banner { padding: 14px 14px 16px; max-height: 86vh; overflow-y: auto; }
  .scc-banner__title { font-size: 16px; }
  .scc-banner__text { font-size: 13px; }
  .scc-banner__actions { flex-direction: column; }
  .scc-banner__actions .scc-btn { width: 100%; }

  .scc-overlay { padding: 0; }
  .scc-modal { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; }
  .scc-modal__body { padding: 16px 14px; }
  .scc-modal__head { padding: 14px 16px; }
  .scc-modal__foot { padding: 12px 14px; flex-direction: column; }
  .scc-modal__foot .scc-btn { width: 100%; }
  .scc-modal__foot .scc-btn--save { margin-left: 0; order: -1; }

  .scc-cat__head { gap: 10px; }
  .scc-reopen { left: 12px; bottom: 12px; width: 42px; height: 42px; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  .scc-banner,
  .scc-overlay,
  .scc-modal,
  .scc-switch__track,
  .scc-switch__track::after,
  .scc-reopen { transition: none !important; }
}

/* Yazdırma */
@media print {
  .scc-root { display: none !important; }
}
