/* GDPR Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #f1f5f9;
  padding: 24px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid #64748b;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.cookie-banner.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner.show {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.cookie-banner-content {
  flex: 1;
  min-width: 300px;
  max-width: 800px;
}

.cookie-banner-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.cookie-banner-text a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
  color: #93c5fd;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.cookie-btn-preferences {
  background: transparent;
  color: #cbd5e1;
  border: none;
  text-decoration: underline;
  padding: 8px 16px;
}

.cookie-btn-preferences:hover {
  color: #60a5fa;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.cookie-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
}

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

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

.cookie-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

.cookie-modal-section {
  margin-bottom: 24px;
}

.cookie-modal-section:last-child {
  margin-bottom: 0;
}

.cookie-modal-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 12px;
}

.cookie-modal-section-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.cookie-option-description {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

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

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

.cookie-toggle-slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
  background-color: #ffffff;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.cookie-modal-buttons .cookie-btn {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px 16px;
  }

  .cookie-banner-content {
    min-width: 100%;
    text-align: center;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-modal-content {
    padding: 24px 20px;
  }

  .cookie-modal-title {
    font-size: 20px;
  }

  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-toggle {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .cookie-banner-buttons {
    flex-direction: column;
  }

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