/**
 * LemonPics Cookie Consent Styles
 * Basierend auf shadcn-ui Design
 */

/* Container */
.cookie-consent-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cookie-consent-container.cookie-consent-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Card Base Styles */
.cookie-consent-card {
  margin: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 28rem;
  width: 100%;
}

/* Desktop Positioning - Komplett zentriert (horizontal & vertikal) */
@media (min-width: 640px) {
  .cookie-consent-container {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cookie-consent-container.cookie-consent-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  
  .cookie-consent-card {
    margin: 0;
    position: relative;
    z-index: 10000;
    border-radius: 1rem;
  }
  
  /* Backdrop Overlay für Desktop */
  .cookie-consent-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9999;
  }
  
  .cookie-consent-container.cookie-consent-visible::before {
    opacity: 1;
  }
}

/* Header */
.cookie-consent-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cookie-consent-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Body */
.cookie-consent-body {
  padding: 1rem 1.5rem;
}

.cookie-consent-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.cookie-consent-notice {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.5rem 0;
}

.cookie-consent-notice strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-consent-link {
  display: inline-block;
  font-size: 0.75rem;
  color: #FFFF00;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration 0.2s;
}

.cookie-consent-link:hover {
  text-decoration: none;
}

/* Footer */
.cookie-consent-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

/* Buttons */
.cookie-consent-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.cookie-consent-btn-primary {
  background: linear-gradient(135deg, #00C853 0%, #00B048 100%);
  color: #ffffff;
}

.cookie-consent-btn-primary:hover {
  background: linear-gradient(135deg, #00B048 0%, #00A044 100%);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
  transform: translateY(-2px);
}

.cookie-consent-btn-primary:active {
  transform: translateY(0);
}

.cookie-consent-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Small Variant */
.cookie-consent-container[data-variant="small"] .cookie-consent-header {
  padding: 1rem 1rem 0 1rem;
}

.cookie-consent-container[data-variant="small"] .cookie-consent-title {
  font-size: 1rem;
}

.cookie-consent-container[data-variant="small"] .cookie-consent-body {
  padding: 0.5rem 1rem;
}

.cookie-consent-container[data-variant="small"] .cookie-consent-footer {
  padding: 0.5rem 1rem 1rem 1rem;
}

.cookie-consent-container[data-variant="small"] .cookie-consent-btn {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.813rem;
}

/* Mini Variant */
.cookie-consent-mini {
  margin: 0;
  padding: 0.75rem 1rem;
  max-width: 48rem;
  width: 100%;
  border-radius: 0;
}

.cookie-consent-content-mini {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cookie-consent-container[data-variant="mini"] {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 48rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cookie-consent-container[data-variant="mini"].cookie-consent-visible {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .cookie-consent-content-mini {
    display: flex;
    gap: 1.5rem;
  }
  
  .cookie-consent-mini {
    margin: 0;
    position: relative;
    z-index: 10000;
    border-radius: 1rem;
  }
  
  /* Backdrop auch für Mini-Variante */
  .cookie-consent-container[data-variant="mini"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9999;
  }
  
  .cookie-consent-container[data-variant="mini"].cookie-consent-visible::before {
    opacity: 1;
  }
}

.cookie-consent-description-mini {
  flex: 1;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .cookie-consent-description-mini {
    font-size: 0.75rem;
  }
}

.cookie-consent-actions-mini {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

@media (min-width: 640px) {
  .cookie-consent-actions-mini {
    gap: 0.75rem;
  }
}

.cookie-consent-btn-accept-mini,
.cookie-consent-btn-decline-mini {
  padding: 0.375rem 1rem;
  height: 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.cookie-consent-btn-accept-mini {
  background: linear-gradient(135deg, #00C853 0%, #00B048 100%);
  color: #ffffff;
}

.cookie-consent-btn-accept-mini:hover {
  background: linear-gradient(135deg, #00B048 0%, #00A044 100%);
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.cookie-consent-btn-decline-mini {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-decline-mini:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Accessibility */
.cookie-consent-btn:focus-visible {
  outline: 2px solid #FFFF00;
  outline-offset: 2px;
}

/* Animation für bessere UX */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-visible .cookie-consent-card {
  animation: slideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Desktop Animation - Fade in mit Scale */
@media (min-width: 640px) {
  .cookie-consent-visible .cookie-consent-card {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* LemonPics Brand Colors */
.cookie-consent-card {
  border-color: rgba(255, 255, 0, 0.2);
}

.cookie-consent-btn-primary {
  background: linear-gradient(135deg, #00C853 0%, #00B048 100%);
}

/* Responsive anpassungen */
@media (max-width: 480px) {
  .cookie-consent-header,
  .cookie-consent-body,
  .cookie-consent-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .cookie-consent-btn {
    font-size: 0.813rem;
    padding: 0.625rem 1rem;
  }
}

