/**
 * Cookie Consent Modal Styles
 * DSGVO-compliant cookie consent modal with blocking backdrop
 */

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Backdrop that blocks page interaction */
.cookie-consent-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.cookie-consent-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

/* Centered modal */
.cookie-consent-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(to right, #2d2e50, #3f3c39, #2d2e50);
  color: white;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  max-width: 600px;
  width: 90%;
  border-radius: 1rem;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}

.cookie-consent-banner.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-consent-text {
  text-align: center;
}

.cookie-consent-text h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cookie-consent-text p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  opacity: 0.95;
  font-size: 0.875rem;
}

.cookie-consent-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.cookie-consent-links a {
  color: #29b7ff;
  text-decoration: underline;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.cookie-consent-links a:hover {
  color: #ffffff;
}

.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

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

.cookie-btn-accept {
  background: #29b7ff;
  color: #ffffff;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    width: 95%;
    padding: 1.5rem;
  }

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

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

  .cookie-btn {
    width: 100%;
  }
}

/* Print: hide banner */
@media print {
  .cookie-consent-banner {
    display: none !important;
  }
}
