/* ══════════════════════════════════════════════════════════════════════
   UstaKasa KVKK Çerez (Cookie) Yönetimi ve Rıza Bileşeni — CSS
   ══════════════════════════════════════════════════════════════════════ */

.uk-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 18px 24px;
  z-index: 999990;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #f8fafc;
  pointer-events: none;
}

.uk-cookie-banner.uk-cookie-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.uk-cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.uk-cookie-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.uk-cookie-text {
  flex: 1;
}

.uk-cookie-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uk-cookie-title-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(73, 129, 206, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uk-cookie-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

.uk-cookie-desc a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 600;
}

.uk-cookie-desc a:hover {
  color: #93c5fd;
}

.uk-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.uk-cookie-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.uk-cookie-btn-primary {
  background: linear-gradient(135deg, #4981ce 0%, #3a6db3 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(73, 129, 206, 0.35);
}

.uk-cookie-btn-primary:hover {
  background: linear-gradient(135deg, #5b92df 0%, #447ac0 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(73, 129, 206, 0.45);
}

.uk-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.16);
}

.uk-cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.uk-cookie-btn-manage {
  background: transparent;
  color: #94a3b8;
  border-color: transparent;
  text-decoration: underline;
  padding: 10px 12px;
}

.uk-cookie-btn-manage:hover {
  color: #e2e8f0;
}

/* ── PREFERENCES MODAL ── */
.uk-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.uk-cookie-modal-backdrop.uk-modal-open {
  opacity: 1;
  visibility: visible;
}

.uk-cookie-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
}

.uk-cookie-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.uk-cookie-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.uk-cookie-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.uk-cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.uk-cookie-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uk-cookie-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px;
}

.uk-cookie-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.uk-cookie-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uk-cookie-badge-always {
  font-size: 10px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
}

.uk-cookie-group-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* iOS Style Switch */
.uk-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.uk-cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: 0.25s;
  border-radius: 24px;
}

.uk-cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.uk-cookie-switch input:checked + .uk-cookie-slider {
  background-color: #3b82f6;
}

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

.uk-cookie-switch input:disabled + .uk-cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.uk-cookie-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.95);
}

@media (max-width: 640px) {
  .uk-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
    border-radius: 16px;
  }
  .uk-cookie-content {
    flex-direction: column;
    gap: 10px;
  }
  .uk-cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .uk-cookie-btn {
    width: 100%;
  }
  .uk-cookie-modal-card {
    max-height: 90vh;
    border-radius: 18px;
  }
  .uk-cookie-modal-footer {
    flex-direction: column;
  }
}
