/* Cookie Consent Banner Styles */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

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

.cookie-text p:first-child {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.cookie-text a {
  color: #3B82F6;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #2563EB;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #3B82F6;
  color: white;
}

.cookie-btn-primary:hover {
  background: #2563EB;
}

.cookie-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cookie-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.cookie-btn-text {
  background: transparent;
  color: #3B82F6;
  padding: 0.625rem 0.75rem;
}

.cookie-btn-text:hover {
  color: #2563EB;
  background: #eff6ff;
}

/* Cookie Modal Styles */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background: white;
  border-radius: 0.75rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95);
  transition: transform 0.3s;
}

#cookie-modal.show .cookie-modal-content {
  transform: scale(1);
}

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

.cookie-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.cookie-modal-close:hover {
  color: #1f2937;
  background: #f3f4f6;
}

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

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

.cookie-category-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-description {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

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

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

.cookie-toggle input:disabled {
  cursor: not-allowed;
}

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

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

.cookie-toggle input:checked + .cookie-slider {
  background-color: #3B82F6;
}

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

.cookie-toggle input:disabled + .cookie-slider {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.cookie-toggle input:focus + .cookie-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cookie-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.cookie-modal-footer .cookie-btn {
  min-width: 120px;
}

.cookie-policy-link {
  margin-top: 1rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.cookie-policy-link a {
  color: #3B82F6;
  text-decoration: none;
  font-size: 0.875rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  #cookie-consent-banner {
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .cookie-buttons .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .cookie-modal-header {
    padding: 1rem;
  }

  .cookie-modal-body {
    padding: 1rem;
  }

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

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

/* Accessibility */
.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-toggle:focus-within {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

