/* ============================================
   ÇEREZ BANNER VE AYARLAR STİLLERİ
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(10, 37, 64, 0.15);
  padding: 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 4px solid #4da8da;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-text h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 6px;
}

.cookie-text p {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: #2f7bd4;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cookie-btn-settings {
  background: #f1f5f9;
  color: #0a2540;
  border: 2px solid #e2e8f0;
}

.cookie-btn-settings:hover {
  border-color: #4da8da;
  color: #2f7bd4;
}

.cookie-btn-reject {
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.cookie-btn-reject:hover {
  background: #e2e8f0;
}

.cookie-btn-accept {
  background: #0a2540;
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #1e3a5f;
}

/* Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-modal-header {
  padding: 20px 24px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a2540;
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
}

.cookie-modal-close:hover {
  background: #f1f5f9;
}

.cookie-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-desc {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-category {
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.cookie-category-header h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a2540;
  margin: 0 0 4px;
}

.cookie-category-header p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

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

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #4da8da;
}

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

.cookie-switch input:disabled + .cookie-slider {
  background-color: #16a34a;
  cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-slider:before {
  transform: translateX(22px);
}

.cookie-modal-footer {
  padding: 16px 24px;
  border-top: 2px solid #e2e8f0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #f8fafc;
}

/* Mobil */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 18px;
  }

  .cookie-banner-content {
    gap: 15px;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    max-height: 95vh;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}
