/**
 * GDPR Cookie Consent Banner Styles
 */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
  -webkit-backdrop-filter: blur(10px); /* Safari */
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  padding: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

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

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

.cookie-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.cookie-consent-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

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

.cookie-consent-text h3 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.cookie-consent-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s;
}

.cookie-consent-text a:hover {
  opacity: 0.8;
}

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

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

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

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn-reject {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }

  .cookie-consent-container {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cookie-consent-icon {
    font-size: 2rem;
  }

  .cookie-consent-text h3 {
    font-size: 1.1rem;
  }

  .cookie-consent-text p {
    font-size: 0.9rem;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .cookie-btn {
    width: 100%;
    padding: 1rem;
  }
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-consent-banner {
    border-top: 3px solid white;
  }
  
  .cookie-btn {
    border: 2px solid white;
  }
}
