/* cookie-consent.css */
/* Fully styled to match your BMI calculator design */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 1.5rem;
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  font-family: 'Inter', system-ui, sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideUp 0.4s ease-out;
  border-radius: 20px 20px 0 0;
  margin: 0.5rem;
  max-width: calc(100% - 1rem);
  width: fit-content;
  min-width: 300px;
  max-width: 720px;
}

.cookie-banner-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.cookie-banner-container p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
}

.cookie-banner-container p a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-container p a:hover {
  color: var(--accent-glow);
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-banner-btn {
  min-width: 110px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cookie-deny-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--input-border);
}

.cookie-deny-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.cookie-accept-btn {
  background: var(--btn-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

.cookie-accept-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(22, 160, 133, 0.4);
}

/* Dark Mode */
.dark-mode #cookie-banner {
  border-top-color: rgba(22, 160, 133, 0.4);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  #cookie-banner {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 1.25rem;
    border-radius: 16px 16px 0 0;
  }
  .cookie-banner-container p {
    font-size: 0.9rem;
  }
  .cookie-banner-btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cookie-banner-btn {
    width: 100%;
  }
}