/**
 * Cookie Consent Banner
 * GDPR-compliant cookie consent for PostHog Analytics
 */

.bpm-cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  padding: 1.25rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  border-top: 3px solid rgb(42, 111, 243);
}

.bpm-cookie-consent.visible {
  transform: translateY(0);
}

.bpm-cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.bpm-cookie-consent-content {
  flex: 1;
  text-align: center;
}

.bpm-cookie-consent-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.bpm-cookie-consent-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.bpm-cookie-consent-text a {
  color: rgb(42, 111, 243);
  text-decoration: underline;
  transition: color 0.2s;
}

.bpm-cookie-consent-text a:hover {
  color: #60a5fa;
}

.bpm-cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

.bpm-cookie-consent-btn-accept {
  background: rgb(42, 111, 243);
  color: #ffffff;
}

.bpm-cookie-consent-btn-accept:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 111, 243, 0.4);
}

.bpm-cookie-consent-btn-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
}

.bpm-cookie-consent-btn-decline:hover {
  background: #334155;
  border-color: #64748b;
  color: #ffffff;
}

/* Responsive design */
@media (min-width: 768px) {
  .bpm-cookie-consent {
    padding: 1.5rem 2rem;
  }

  .bpm-cookie-consent-container {
    flex-direction: row;
    gap: 2rem;
  }

  .bpm-cookie-consent-content {
    text-align: left;
  }

  .bpm-cookie-consent-actions {
    flex-shrink: 0;
  }
}

/* Animation on first load */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

