/* ============================================
   COOKIE CONSENT BANNER & MODAL STYLES
   ============================================ */

/* Cookie Banner - Fixed at bottom */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.cookie-banner__description {
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner__actions {
    flex-direction: column;
  }
}

.cookie-banner__btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: #10b981;
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.cookie-banner__btn--necessary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner__btn--necessary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-banner__btn--settings:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
}

.cookie-modal__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cookie-modal__close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.cookie-modal__body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal__intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 1.5rem 0;
}

/* Cookie Categories */
.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category__header {
  margin-bottom: 0.5rem;
}

.cookie-category__label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cookie-category__checkbox {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: #3b82f6;
}

.cookie-category__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-category__description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0.5rem 0 0 2.25rem;
}

/* Modal Footer */
.cookie-modal__footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 480px) {
  .cookie-modal__footer {
    flex-direction: column;
  }
}

.cookie-modal__btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-modal__btn--cancel {
  background: #e5e7eb;
  color: #4b5563;
}

.cookie-modal__btn--cancel:hover {
  background: #d1d5db;
}

.cookie-modal__btn--save {
  background: #3b82f6;
  color: #ffffff;
}

.cookie-modal__btn--save:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Accessibility */
.cookie-banner__btn:focus,
.cookie-modal__btn:focus,
.cookie-modal__close:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
}
