/**
 * RUNQIX Cookie Consent Banner Styles
 * Dark Theme - DSGVO-konform
 */

/* Banner Container */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, #0A0A0F 100%);
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  padding: 20px;
  z-index: 100000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.consent-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

/* Banner Content */
.consent-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Text Section */
.consent-banner__text {
  flex: 1;
}

.consent-banner__title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-banner__title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00FF88;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.consent-banner__description {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #8A8A9A;
  margin: 0;
}

.consent-banner__description a {
  color: #00FF88;
  text-decoration: none;
  transition: color 0.2s ease;
}

.consent-banner__description a:hover {
  color: #00D4FF;
  text-decoration: underline;
}

/* Buttons Section */
.consent-banner__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Primary Button - Accept All */
.consent-btn {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 160px;
  text-align: center;
}

.consent-btn--primary {
  background: linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
  color: #0A0A0F;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.consent-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.4);
}

.consent-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

/* Secondary Button - Necessary Only */
.consent-btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.consent-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.consent-btn--secondary:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
  .consent-banner {
    padding: 24px 32px;
  }

  .consent-banner__content {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .consent-banner__buttons {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .consent-banner {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .consent-banner__title {
    font-size: 16px;
  }

  .consent-banner__description {
    font-size: 13px;
  }

  .consent-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }

  .consent-banner__buttons {
    flex-direction: column;
  }
}

/* Animation for glow effect */
@keyframes consentGlow {
  0%, 100% {
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(0, 255, 136, 0.1);
  }
  50% {
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 255, 136, 0.2);
  }
}

.consent-banner--visible {
  animation: consentGlow 3s ease-in-out infinite;
}

/* Focus states for accessibility */
.consent-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.5);
}

.consent-btn:focus-visible {
  outline: 2px solid #00FF88;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .consent-banner--visible {
    animation: none;
  }

  .consent-btn {
    transition: none;
  }
}
