/* ============================================================
   cookies.css — blossom-ic Cookie Modal
   (Bootstrap modal uyumu + temiz/tekil kurallar)
   ============================================================ */

/* ===== Bootstrap modal görünürlük düzeltmesi ===== */
.modal { display: none; }
.modal.in, .modal.show { display: block; }

.modal {
  z-index: 99999 !important;
}
.modal-backdrop {
  z-index: 99998 !important;
}

/* Backdrop opaklık */
.modal-backdrop.in,
.modal-backdrop.show{
  opacity: .55;
}

/* Body kilidi */
body.modal-open { overflow: hidden !important; }

/* ===== Brand Variables ===== */
:root{
  --brand:#00c781;
  --brand-600:#00b576;
  --brand-700:#00a66b;
  --ink:#0b1a2b;
  --muted:#6a6a6a;
  --bg-soft:#f5f9f7;
  --bd:#e6f3ee;
}

/* ============================================================
   Cookie Modal Layout
   ============================================================ */

#cookieModal .row { margin-left: 0 !important; }
#cookieModal .modal-title { font-size: 20px; font-weight: 700; color: var(--ink); }

#cookieModal .modal-dialog {
  margin: 0.75rem auto !important;
}
#cookieModal .modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  overflow: hidden;
  max-height: calc(100dvh - 1.5rem);
}

#cookieModal .modal-header {
  justify-content: center !important;  /* tüm içeriği yatayda ortalar */
}
#cookieModal .modal-body   { padding: 10px 24px 0; overflow: auto; -webkit-overflow-scrolling: touch; }
#cookieModal .modal-footer {
  border: 0;
  padding: 18px 24px 24px;

  /* sticky footer */
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
}

/* Intro / description */
#cookieModal .modal-body .intro-container { font-size: 12px; color:#222; }
#cookieModal .modal-body .description { padding: 5px; color:#222; }
.description{
  padding-left: 5px !important;
  padding-top: 10px !important;
}

/* ============================================================
   Settings Panel (Ayarlar)
   - default: kapalı
   - #cookieModal.settings-open eklenince açılır
   ============================================================ */

#cookieModal .cookie-settings-container{
  display: none;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* class ile kontrol */
#cookieModal.settings-open .cookie-settings-container{
  display: block !important;
}

/* ============================================================
   Category Cards
   ============================================================ */

#cookieModal .cookie-category-container{
  background:#fff;
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  padding: 12px;
}

#cookieModal .cookie-category-container .headline{
  padding: 5px;
  margin: 0 !important;
  position: relative;
  padding-left: 10px;
  margin-bottom: 6px;
}

/* sol vurgu şeridi */
#cookieModal .cookie-category-container .headline:before{
  content:"";
  position:absolute;
  left:0;
  top:4px;
  bottom:4px;
  width:4px;
  border-radius:4px;
  background:var(--brand);
}

#cookieModal .cookie-category-container .headline .headline-text{
  font-size: 16px;
  font-weight: bold;
  float: left;
  color: var(--ink);
}

#cookieModal .cookie-category-container .more-info{
  cursor: pointer;
  margin-left: 10px;
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
  float: left;
  color: var(--brand) !important;
  text-decoration: underline;
}
#cookieModal .cookie-category-container .more-info:hover{
  text-decoration: none;
}

#cookieModal .cookie-category-container .toggle{
  float: right;
  position: absolute;
  right: 30px;
}

#cookieModal .cookie-category-container .description{
  font-size: 12px;
  margin-bottom: 10px;
  color:#222;
}

/* Cookie list default kapalı (detaylar) */
#cookieModal .cookie-category-container .cookie-list{
  display: none;
  padding: 10px;
  padding-right: 25px;
}

#cookieModal .cookie-category-container .form-check {
  display: inline-flex;
  align-items: center;
  margin-right: -3px;
  margin-top: 30px;


}

/* ============================================================
   Cookie Table
   ============================================================ */

#cookieModal .cookie-table{ width: 100%; margin-bottom: 12px; }
#cookieModal .cookie-table tr{ background-color: #ffffff; }
#cookieModal .cookie-table td{
  border: 5px solid #f9f9f9;
  padding: 8px;
  font-size: 12px;
  color:#222;
}
#cookieModal .cookie-table td:first-child{
  width: 25%;
  font-weight: bold;
}
#cookieModal .cookie-table td input.acceptCookie{
  position: relative;
  margin-top: .3rem;
  margin-left: 0;
}

/* ============================================================
   Checkbox (BS3 uyumlu görünüm)
   ============================================================ */

#cookieModal input{
  -webkit-appearance: checkbox !important;
}

#cookieModal .form-check .form-check-input{
  height: 20px;
  width: 20px;
  float: left;
  margin-top: 1px;
}
#cookieModal .form-check .form-check-label{
  display: block;
  margin-top: -2px;
  margin-left: 28px;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   Footer Buttons (Flex + responsive)
   ============================================================ */

#cookieModal .modal-footer { padding: 10px; }

#cookieModal .modal-footer .row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-left:0;    /* bootstrap row negatif margin fix */
  margin-right:0;
  justify-content:flex-end;
}

#cookieModal .modal-footer .row .btn{
  float:none !important;
  margin:0 !important;
  line-height: 25px !important;
  padding: 12px 14px;
  height: auto;
  border-radius: 10px;
  font-weight: 700;
}

/* İlk butonu sola sabitle (genelde “Ayarlar”) */
#cookieModal .modal-footer .row .btn:first-of-type{
  margin-right:auto;
}

/* Primary: “Tümünü kabul et” */
#cookieModal .btn-all-cookie{
  background: var(--brand) !important;
  color:#fff !important;
  border:0 !important;
}
#cookieModal .btn-all-cookie:hover{ background: var(--brand-600) !important; color:#fff !important; }
#cookieModal .btn-all-cookie:active{ background: var(--brand-700) !important; }

/* Secondary: “Kaydet” */
#cookieModal .btn-save-cookie{
  background:#fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--bd) !important;
}
#cookieModal .btn-save-cookie:hover{
  background:#f8fbfa !important;
  border-color:#d8efe7 !important;
}

/* Link-style butonlar (Ayarlar / Geri) */
#cookieModal .btn-cookie-settings,
#cookieModal .btn-back{
  background:#fff !important;
  color: var(--brand) !important;
  border: 1px solid var(--bd) !important;
}
#cookieModal .btn-cookie-settings:hover,
#cookieModal .btn-back:hover{
  background: var(--bg-soft) !important;
}

/* JS class ile kontrol için: default görünürlük */
#cookieModal .btn-back{ display: none; }

/* settings-open olunca: Ayarlar gizle, Geri göster */
#cookieModal.settings-open .btn-cookie-settings{ display: none !important; }
#cookieModal.settings-open .btn-back{ display: inline-block !important; }

/* Mobil: butonları dikey sırala + tam genişlik */
#cookieModal .ckx-actions .btn{
  white-space: normal;
  line-height: 1.25;
}

@media (max-width:576px){
  #cookieModal .modal-footer .row{
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
  }
  #cookieModal .modal-footer .row .btn:first-of-type{
    margin-right:0;
  }
  #cookieModal .ckx-actions .btn{
    width:100%;
  }
}

/* ============================================================
   Footer links (KVKK / Impressum)
   ============================================================ */

#cookieModal .btn-cookie-privacy-imprint{
  padding: 0;
  display: inline;
  background: none;
  border: none;
}

#cookieModal .btn-cookie-privacy-imprint ul{
  cursor: default;
  text-align: right;
  list-style-type: none;
  margin: 0;
  margin-top: 15px;
  padding: 0;
  overflow: hidden;
}
#cookieModal .btn-cookie-privacy-imprint ul li{ display: inline; }

#cookieModal .btn-cookie-privacy-imprint a,
#cookieModal .btn-link{
  color: var(--brand) !important;
  text-decoration: underline;
}
#cookieModal .btn-cookie-privacy-imprint a:hover,
#cookieModal .btn-link:hover{
  text-decoration:none;
}

/* ============================================================
   Utility
   ============================================================ */
.bg-white { background-color: white; }
#cookieModal .btn-info, #cookieModal .btn-primary{ border: none !important; }

/* =========================================
   Cookie Modal – Settings toggle via class
   ========================================= */

/* Varsayılan: gelişmiş ayarlar kapalı (zaten var ama garanti olsun) */
#cookieModal .cookie-settings-container{
  display: none !important;
}

/* settings-open: gelişmiş ayarlar açık */
#cookieModal.settings-open .cookie-settings-container{
  display: block !important;
}

/* Ayarlar açılınca buton görünürlükleri */
#cookieModal.settings-open .btn-cookie-settings{
  display: none !important;
}
#cookieModal.settings-open .btn-back{
  display: inline-block !important;
}

/* Ayarlar kapalıyken geri butonu kapalı */
#cookieModal:not(.settings-open) .btn-back{
  display: none !important;
}

/* =========================================================
   Blossom-ic Cookie Modal – CKX (views/cookie.php uyumlu)
   HTML: .btn-cookie-settings + .btn-all-cookie var
   ========================================================= */

:root{
  --brand:#00c781;
  --brand-600:#00b576;
  --brand-700:#00a66b;
  --ink:#0b1a2b;
  --muted:#6a6a6a;
  --bg-soft:#f5f9f7;
  --bd:#e6f3ee;
}

/* Modal görünürlük (Bootstrap ile birlikte) */
.modal { display:none; }
.modal.in, .modal.show { display:block; }

/* Z-index fix */
.modal{ z-index:99999 !important; }
.modal-backdrop{ z-index:99998 !important; }
.modal-backdrop.in,
.modal-backdrop.show{ opacity:.55; }

/* Modal kabı */
#cookieModal .modal-content{
  border:0;
  border-radius:12px;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
  overflow:hidden;
  max-height: calc(100dvh - 1.5rem);
}

#cookieModal .modal-header{
  border:0;
  padding:22px 24px 10px;
}
#cookieModal .modal-body{
  padding:10px 24px 0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
#cookieModal .modal-footer{
  border:0;
  padding:14px 24px 18px;
  position:sticky;
  bottom:0;
  background:#fff;
  z-index:2;
}

/* Başlık + metin */
#cookieModal .ckx-title{
  margin:0;
  font-weight:800;
  color:var(--ink);
  font-size:20px;
}
#cookieModal .ckx-text{
  color:#222;
  font-size:14px;
  line-height:1.45;
}
#cookieModal .ckx-links a{
  color:var(--brand) !important;
  text-decoration:underline;
}
#cookieModal .ckx-links a:hover{ text-decoration:none; }

/* === Gelişmiş ayarlar paneli === */
/* default kapalı */
#cookieModal .cookie-settings-container{
  display:none !important;
  max-height: 320px;
  overflow-y:auto;
  overflow-x:hidden;
  margin-top:12px;
  padding-right:4px;
}

/* Ayarlar açılınca (JS class ekleyecek) */
#cookieModal.settings-open .cookie-settings-container{
  display:block !important;
}

/* Kategori kartları */
#cookieModal .cookie-category-container{
  background:#fff;
  border:1px solid var(--bd);
  border-radius:10px;
  padding:12px;
  margin-bottom:12px;
  font-size:12px;
}

#cookieModal .cookie-category-container .headline{
  margin:0 0 6px 0;
  position:relative;
  padding-left:10px;
}
#cookieModal .cookie-category-container .headline:before{
  content:"";
  position:absolute; left:0; top:4px; bottom:4px;
  width:4px; border-radius:4px;
  background:var(--brand);
}
#cookieModal .headline-text{
  font-size:16px;
  font-weight:800;
  color:var(--ink);
}

/* Detay linki */
#cookieModal .more-info{
  cursor:pointer;
  margin-left:10px;
  font-size:12px;
  line-height:22px;
  font-weight:800;
  color:var(--brand) !important;
  text-decoration:underline;
}
#cookieModal .more-info:hover{ text-decoration:none; }

/* Toggle sağda */
#cookieModal .toggle{
  float:right;
  position:absolute;
  right:30px;
  top:12px;
}

/* Açıklama */
#cookieModal .decription,
#cookieModal .description{
  color:#222;
  font-size:12px;
  margin-bottom:8px;
  padding-left:5px !important;
  padding-top:10px !important;
}

/* Cookie list default kapalı */
#cookieModal .cookie-list{
  display:none;
  padding:10px 0 0;
}

/* Tablo */
#cookieModal .cookie-table{
  width:100%;
  margin:0 0 12px 0;
}
#cookieModal .cookie-table td{
  border:5px solid #f6f6f6;
  padding:8px;
  font-size:12px;
}
#cookieModal .cookie-table td:first-child{
  width:25%;
  font-weight:800;
}

/* Checkbox boyut (acceptCookie) */
#cookieModal input.form-check-input{
  height:20px;
  width:20px;
  margin:0;
  -webkit-appearance: checkbox !important;
}

/* Aksiyon alanı */
#cookieModal .ckx-actions{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* Buton base */
#cookieModal .ckx-actions .btn{
  border-radius:10px;
  padding:12px 14px;
  height:auto;
  font-weight:800;
  line-height:1.25;
  white-space:normal;
}

/* Bireysel ayarlar (outline) */
#cookieModal .btn-cookie-settings{
  background:#fff !important;
  color:var(--brand) !important;
  border:1px solid var(--bd) !important;
}
#cookieModal .btn-cookie-settings:hover{
  background:var(--bg-soft) !important;
}

/* Hepsini kabul (primary) */
#cookieModal .btn-all-cookie{
  background:var(--brand) !important;
  color:#fff !important;
  border:0 !important;
}
#cookieModal .btn-all-cookie:hover{ background:var(--brand-600) !important; }
#cookieModal .btn-all-cookie:active{ background:var(--brand-700) !important; }

/* Focus ring */
#cookieModal .btn:focus,
#cookieModal input:focus,
#cookieModal a:focus{
  outline:2px solid rgba(0,199,129,.35) !important;
  outline-offset:2px;
  box-shadow:0 0 0 3px rgba(0,199,129,.25) !important;
}

/* Mobil */
@media (max-width:576px){
  #cookieModal .ckx-actions{ flex-direction:column; align-items:stretch; }
  #cookieModal .ckx-actions .btn{ width:100%; }
}

/* body lock */
body.modal-open{ overflow:hidden !important; }

/* BS row negatif margin fix (senin önceki stillerle uyum için) */
#cookieModal .row{ margin-left:0 !important; }