/*
 * consent.css - Estilos del banner de consentimiento
 * Compatible con dark/light mode del sitio HOPE
 */

/* Banner de consentimiento */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-alt, #1a1a1a);
  color: var(--color-text-primary, #ffffff);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  border-top: 2px solid var(--color-accent, #0066CC);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.consent-banner-hidden {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

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

.consent-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #b3b3b3);
}

.consent-link {
  color: var(--color-accent, #0066CC);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.consent-link:hover {
  color: var(--color-accent-hover, #0052A3);
}

.consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.consent-btn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.consent-accept {
  background: #10b981;
  color: #ffffff;
}

.consent-accept:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.consent-reject {
  background: transparent;
  color: var(--color-text-secondary, #b3b3b3);
  border: 1px solid var(--color-border, #4d4d4d);
}

.consent-reject:hover {
  background: var(--color-bg, #000000);
  color: var(--color-text-primary, #ffffff);
  border-color: var(--color-text-secondary, #b3b3b3);
}

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

  .consent-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .consent-buttons {
    width: 100%;
    justify-content: center;
  }

  .consent-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* Light mode adjustments */
[data-theme="light"] .consent-banner {
  background: #ffffff;
  color: #1a202c;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-top-color: #0066CC;
}

[data-theme="light"] .consent-text {
  color: #4a5568;
}

[data-theme="light"] .consent-reject {
  color: #4a5568;
  border-color: #cbd5e0;
}

[data-theme="light"] .consent-reject:hover {
  background: #f7fafc;
  color: #1a202c;
  border-color: #4a5568;
}
