/* GDPR Cookie Consent Banner Styles */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 138, 0.98);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  backdrop-filter: blur(10px);
  border-top: 3px solid #dc2626;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

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

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

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

.cookie-banner-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fbbf24;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

.cookie-banner-text a {
  color: #fbbf24;
  text-decoration: underline;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #dc2626;
  color: white;
}

.cookie-btn-accept:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: #6b7280;
  color: white;
}

.cookie-btn-reject:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.cookie-btn-customize {
  background: transparent;
  color: white;
  border: 2px solid #fbbf24;
}

.cookie-btn-customize:hover {
  background: #fbbf24;
  color: #1e3a8a;
  transform: translateY(-1px);
}

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

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

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

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

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

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

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

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

.cookie-modal-intro {
  margin-bottom: 1.5rem;
  color: #374151;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.cookie-category-header {
  background: #f9fafb;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-category-header:hover {
  background: #f3f4f6;
}

.cookie-category-title {
  font-weight: 600;
  color: #1e3a8a;
  margin: 0;
  font-size: 1rem;
}

.cookie-category-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-switch.active {
  background: #dc2626;
}

.cookie-switch.disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.cookie-switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch.active .cookie-switch-handle {
  transform: translateX(24px);
}

.cookie-category-content {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.cookie-category-description {
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.cookie-category-examples {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
}

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

.cookie-modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-modal-btn-save {
  background: #dc2626;
  color: white;
}

.cookie-modal-btn-save:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.cookie-modal-btn-accept-all {
  background: #059669;
  color: white;
}

.cookie-modal-btn-accept-all:hover {
  background: #047857;
  transform: translateY(-1px);
}

.cookie-modal-btn-reject-all {
  background: #6b7280;
  color: white;
}

.cookie-modal-btn-reject-all:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cookie-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .cookie-modal {
    padding: 0.5rem;
  }
  
  .cookie-modal-content {
    max-height: 90vh;
  }
  
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 1rem;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
  }
  
  .cookie-category-header {
    padding: 0.75rem;
  }
  
  .cookie-category-content {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner-text h3 {
    font-size: 1rem;
  }
  
  .cookie-banner-text p {
    font-size: 0.85rem;
  }
  
  .cookie-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .cookie-modal-header h2 {
    font-size: 1.1rem;
  }
}

/* Animation for smooth appearance */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner.animate {
  animation: slideUp 0.3s ease-out;
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-modal-btn:focus,
.cookie-modal-close:focus,
.cookie-switch:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    border-top: 4px solid #dc2626;
  }
  
  .cookie-switch {
    border: 2px solid #374151;
  }
  
  .cookie-category {
    border: 2px solid #374151;
  }
}