/**
 * FILE: backend/public/css/consent-banner.css
 * PURPOSE: Styles for cookie consent banner
 * DESCRIPTION: Modern, accessible consent banner styling
 */

#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.consent-text {
  margin: 0;
  flex: 1;
  min-width: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.consent-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.consent-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.consent-accept {
  background: white;
  color: #667eea;
}

.consent-accept:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.consent-decline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.consent-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  #consent-banner {
    padding: 1rem;
  }
  
  .consent-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .consent-text {
    min-width: auto;
    font-size: 0.9rem;
  }
  
  .consent-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .consent-btn {
    width: 100%;
    padding: 0.875rem;
  }
}

/* Accessibility */
.consent-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #consent-banner {
    animation: none;
  }
  
  .consent-btn:hover {
    transform: none;
  }
}
