/* public/css/cookie-consent.css */

.kurb-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #374151;
  border: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
  .kurb-cookie-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

.kurb-cookie-header {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kurb-cookie-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: #4b5563;
}

.kurb-cookie-text a {
  color: #81B29A;
  text-decoration: none;
  font-weight: 500;
}

.kurb-cookie-text a:hover {
  text-decoration: underline;
}

.kurb-cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kurb-cookie-btn {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.kurb-cookie-btn-primary {
  background: #3D405B;
  color: #ffffff;
}

.kurb-cookie-btn-primary:hover {
  background: #2b2e42;
}

.kurb-cookie-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.kurb-cookie-btn-secondary:hover {
  background: #e5e7eb;
}

.kurb-cookie-btn-tertiary {
  background: transparent;
  color: #6b7280;
  text-decoration: underline;
  padding: 0.25rem;
}

.kurb-cookie-btn-tertiary:hover {
  color: #374151;
}

/* Preferences Modal */
.kurb-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.kurb-cookie-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.kurb-cookie-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.kurb-cookie-overlay.active .kurb-cookie-modal {
  transform: translateY(0);
}

.kurb-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kurb-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.kurb-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}

.kurb-close-btn:hover {
  color: #4b5563;
}

.kurb-modal-body {
  padding: 1.5rem;
}

.kurb-preference-item {
  margin-bottom: 1.5rem;
}

.kurb-preference-item:last-child {
  margin-bottom: 0;
}

.kurb-preference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.kurb-preference-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #374151;
}

.kurb-preference-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Toggle Switch */
.kurb-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.kurb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kurb-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: .4s;
  border-radius: 34px;
}

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

input:checked + .kurb-slider {
  background-color: #81B29A;
}

input:disabled + .kurb-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.kurb-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: flex-end;
}

.kurb-modal-footer .kurb-cookie-btn {
  width: auto;
}
