/* GDPR Simple Cookie Consent Styles for Perfodyne Labs */
.gdpr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: none;
  cursor: default; /* Remove pointer cursor to indicate non-clickable */
}

.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  color: white;
  box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  display: none;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  border-top: 3px solid #7c3aed; /* Stronger border to indicate importance */
}

.gdpr-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gdpr-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.gdpr-banner-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #fff;
}

.gdpr-cookie-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fbbf24;
}

.gdpr-banner-description {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.gdpr-banner-description:last-of-type {
  margin-bottom: 0;
}

.gdpr-banner-privacy-link {
  color: #7c3aed;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.gdpr-banner-privacy-link:hover {
  color: #8b5cf6;
}

.gdpr-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .gdpr-banner-buttons {
    flex-direction: row;
    margin-left: 2rem;
  }
}

.gdpr-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  min-width: 160px;
}

.gdpr-btn-accept {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.gdpr-btn-accept:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.gdpr-settings-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.gdpr-settings-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.gdpr-settings-btn .gdpr-cookie-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Improved accessibility */
@media (prefers-reduced-motion: reduce) {
  .gdpr-btn,
  .gdpr-settings-btn {
    transition: none;
  }
  
  .gdpr-btn:hover,
  .gdpr-settings-btn:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gdpr-banner {
    border-top: 5px solid #fff;
    background: #000;
  }
  
  .gdpr-btn-accept {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
}

/* Ensure proper layering */
.gdpr-overlay,
.gdpr-banner,
.gdpr-settings-btn {
  pointer-events: auto;
}

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

.gdpr-banner.show {
  animation: slideUp 0.3s ease-out;
}

/* Focus states for accessibility */
.gdpr-btn:focus,
.gdpr-settings-btn:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.gdpr-banner-privacy-link:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}
