/* ========================================================
   Çukurova Site & Bina Yönetimi - Profesyonel Çerez (Cookie) Pop-up Stilleri
   Marka Renkleri: Primary #003875 | Cyan #0086ff | Green #249c3d
   ======================================================== */

.cukurova-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  width: calc(100% - 32px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 42, 92, 0.22), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 134, 255, 0.2);
  z-index: 999990; /* PWA banner (999999) ve sağ butonların arkasında/önünde çakışmaz */
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cukurova-cookie-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Üst Başlık & İkon & Kapat */
.cukurova-cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.cukurova-cookie-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cukurova-cookie-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e6f3ff 0%, #d4ebff 100%);
  color: #0086ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cukurova-cookie-title {
  font-size: 15px;
  font-weight: 700;
  color: #003875;
  margin: 0;
  line-height: 1.25;
}

.cukurova-cookie-btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.cukurova-cookie-btn-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Gövde Metni */
.cukurova-cookie-body {
  padding: 12px 20px 14px 20px;
}

.cukurova-cookie-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 10px 0;
}

.cukurova-cookie-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.cukurova-cookie-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cukurova-cookie-badge i {
  color: #249c3d;
  font-size: 10px;
}

/* Detay / Tercih Akordiyon Paneli */
.cukurova-cookie-details {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.cukurova-cookie-details.open {
  display: block;
  animation: cukurovaFadeIn 0.3s ease;
}

@keyframes cukurovaFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cukurova-cookie-opt-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.cukurova-cookie-opt-info {
  flex: 1;
}

.cukurova-cookie-opt-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.cukurova-cookie-opt-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

/* Toggle Switch */
.cukurova-cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cukurova-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cukurova-cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 22px;
}

.cukurova-cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cukurova-cookie-switch input:checked + .cukurova-cookie-slider {
  background-color: #0086ff;
}

.cukurova-cookie-switch input:checked + .cukurova-cookie-slider:before {
  transform: translateX(16px);
}

.cukurova-cookie-switch input:disabled + .cukurova-cookie-slider {
  background-color: #249c3d;
  opacity: 0.75;
  cursor: not-allowed;
}

/* Buton Grupları */
.cukurova-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 20px 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.cukurova-cookie-btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.cukurova-cookie-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
  flex: 1;
}

/* Hepsini Kabul Et */
.cukurova-cookie-btn-accept {
  background: linear-gradient(135deg, #0086ff 0%, #003875 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 134, 255, 0.3);
}

.cukurova-cookie-btn-accept:hover {
  background: linear-gradient(135deg, #0073dd 0%, #002550 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 134, 255, 0.45);
}

/* Reddet */
.cukurova-cookie-btn-reject {
  background: #ffffff;
  color: #475569 !important;
  border-color: #cbd5e1;
}

.cukurova-cookie-btn-reject:hover {
  background: #f1f5f9;
  color: #0f172a !important;
  border-color: #94a3b8;
}

/* Tercihler Butonu (Link/Secondary) */
.cukurova-cookie-btn-settings {
  background: transparent;
  color: #0056b3 !important;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}

.cukurova-cookie-btn-settings:hover {
  color: #002550 !important;
  text-decoration: underline !important;
}

/* Mobil Uyumluluk ve PWA Uyumu */
@media (max-width: 768px) {
  .cukurova-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: 100%;
    border-radius: 16px;
  }
  
  /* Hem Çerez hem PWA aynı anda görünüyorsa çerez yukarıda/akıllıca konumlanır */
  body.cukurova-pwa-active .cukurova-cookie-banner {
    bottom: 104px; /* Mobil PWA banner yüksekliği + boşluk */
  }
}
