/* Cookie Banner Styles - GDPR Compliant */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-link {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.cookie-link:hover {
  color: #93c5fd;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.cookie-accept {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cookie-accept:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

.cookie-reject {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cookie-reject:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

.cookie-customize {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cookie-customize:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Cookie Settings Panel */
.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cookie-settings.hidden {
  opacity: 0;
  visibility: hidden;
}

.cookie-settings-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

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

.cookie-settings-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
  text-align: center;
}

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

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

.cookie-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 0.75rem;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  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.1);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: #10b981;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
  background: #9ca3af;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider::before {
  background: #f3f4f6;
}

.toggle-label {
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

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

.cookie-settings-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.cookie-settings-actions .cookie-btn {
  min-width: 140px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .cookie-text {
    min-width: auto;
    text-align: left;
  }
  
  .cookie-actions {
    justify-content: stretch;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: auto;
  }
  
  .cookie-settings {
    padding: 1rem;
  }
  
  .cookie-settings-content {
    padding: 1.5rem;
    margin: 0;
  }
  
  .cookie-category-desc {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .cookie-settings-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-text h3 {
    font-size: 1.125rem;
  }
  
  .cookie-text p {
    font-size: 0.875rem;
  }
  
  .cookie-settings-content h4 {
    font-size: 1.25rem;
  }
}

/* Accessibility Improvements */
.cookie-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.cookie-toggle:focus-within .toggle-slider {
  box-shadow: 0 0 0 2px #3b82f6;
}

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

.cookie-banner.show {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}