/* JD's Vegan Dives — PWA Install Card */

#jdvd-install-card {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 420px);
  background: #0e1f16;
  border: 1px solid rgba(126, 207, 179, 0.18);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  z-index: 9000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  color: #e8f0e9;
  animation: jdvd-slide-up 0.3s ease;
}

@keyframes jdvd-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.jdvd-install-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.jdvd-install-card__dismiss {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(232, 240, 233, 0.45);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.jdvd-install-card__dismiss:hover {
  color: #e8f0e9;
}

.jdvd-install-card__icon img {
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
}

.jdvd-install-card__body {
  flex: 1;
  min-width: 0;
}

.jdvd-install-card__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e8f0e9;
}

.jdvd-install-card__desc {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(232, 240, 233, 0.7);
}

.jdvd-install-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.jdvd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
  line-height: 1;
}
.jdvd-btn--primary {
  background: #7ecfb3;
  color: #07110d;
}
.jdvd-btn--primary:hover {
  background: #6dc4a7;
}
.jdvd-btn--secondary {
  background: rgba(126, 207, 179, 0.12);
  color: #7ecfb3;
  border: 1px solid rgba(126, 207, 179, 0.3);
}
.jdvd-btn--secondary:hover {
  background: rgba(126, 207, 179, 0.2);
}
.jdvd-btn--ghost {
  background: transparent;
  color: rgba(232, 240, 233, 0.5);
  border: 1px solid rgba(232, 240, 233, 0.15);
}
.jdvd-btn--ghost:hover {
  color: #e8f0e9;
  border-color: rgba(232, 240, 233, 0.35);
}

/* How-to steps panel */
.jdvd-install-card__steps {
  padding: 1rem 1.25rem 1.25rem;
}
.jdvd-install-card__steps-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8f0e9;
}
.jdvd-install-card__steps ol {
  margin: 0 0 0.85rem 1.1rem;
  padding: 0;
}
.jdvd-install-card__steps li {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(232, 240, 233, 0.75);
  margin-bottom: 0.25rem;
}
.jdvd-install-card__steps strong {
  color: #e8f0e9;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  #jdvd-install-card {
    animation: none;
  }
}
