/**
 * Cookie Consent Banner Styles
 * GDPR/DSGVO compliant cookie consent UI
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

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

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

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

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

.cookie-consent-text a {
  color: #8b7355;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-consent-text a:hover {
  color: #a8957d;
}

/* Cookie Details Expandable Section */
.cookie-details {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid #8b7355;
}

.cookie-details summary {
  cursor: pointer;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0;
  user-select: none;
}

.cookie-details summary:hover {
  color: #ffffff;
}

.cookie-details ul {
  margin: 0.75rem 0 0.5rem 1.5rem;
  padding: 0;
  list-style-type: disc;
}

.cookie-details li {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.cookie-details small {
  color: rgba(255, 255, 255, 0.7);
}

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

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #8b7355;
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: #a8957d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.cookie-btn-decline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

/* External Content Placeholder */
.external-content-placeholder {
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  max-width: 400px;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.placeholder-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: #333;
}

.placeholder-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.6;
}

.placeholder-btn {
  padding: 0.75rem 1.5rem;
  background: #8b7355;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.placeholder-btn:hover {
  background: #a8957d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

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

  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .cookie-consent-text {
    min-width: unset;
  }

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

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

  .cookie-consent-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .external-content-placeholder {
    padding: 2rem 1rem;
    min-height: 250px;
  }

  .placeholder-icon {
    font-size: 2.5rem;
  }

  .placeholder-content h4 {
    font-size: 1.1rem;
  }

  .placeholder-content p {
    font-size: 0.9rem;
  }
}

/* Accessibility */
.cookie-btn:focus-visible,
.placeholder-btn:focus-visible {
  outline: 2px solid #8b7355;
  outline-offset: 2px;
}

/* Animation for placeholder */
.external-content-placeholder {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #8b7355;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.cookie-settings-link:hover {
  color: #a8957d;
}
