/*
  VidProd - White area card polish
  Makes all "white area" cards match the light, rounded, soft-border look in your screenshot.
  Load AFTER assets/css/style.css
*/

:root {
  --vp-card-radius: 18px;
  --vp-card-border: rgba(15, 23, 42, 0.10);
  --vp-card-bg: linear-gradient(
    180deg,
    rgba(13, 110, 253, 0.06) 0%,
    rgba(255, 255, 255, 0.94) 38%,
    rgba(255, 255, 255, 1) 100%
  );
  --vp-card-shadow: 0 14px 40px rgba(2, 6, 23, 0.08);
  --vp-card-shadow-hover: 0 18px 55px rgba(2, 6, 23, 0.12);
}

/*
  Primary cards in the white-content area:
  - Bootstrap .card (except the hero glass card)
  - Your boxed blocks that use: p-4 rounded-4 border bg-white/bg-soft
*/
main .card:not(.card-glow),
main .p-4.rounded-4.border.bg-white,
main .p-4.rounded-4.border.bg-soft {
  border-radius: var(--vp-card-radius) !important;
  border: 1px solid var(--vp-card-border) !important;
  background: var(--vp-card-bg) !important;
  box-shadow: var(--vp-card-shadow) !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

main .card:not(.card-glow):hover,
main .p-4.rounded-4.border.bg-white:hover,
main .p-4.rounded-4.border.bg-soft:hover {
  transform: translateY(-2px);
  box-shadow: var(--vp-card-shadow-hover) !important;
}

/* Keep existing spacing choices (p-4, etc.) but ensure the border doesn't look heavy */
main .card:not(.card-glow) .card-body {
  border-radius: var(--vp-card-radius);
}

/* Mini cards inside cards (the little bordered boxes) — same style but lighter */
main .p-3.rounded-4.border,
main .p-3.rounded-4.border.bg-white,
main .p-3.rounded-4.border.bg-soft {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  background: linear-gradient(
    180deg,
    rgba(13, 110, 253, 0.04) 0%,
    rgba(255, 255, 255, 0.96) 55%,
    rgba(255, 255, 255, 1) 100%
  ) !important;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06) !important;
}

/* Lists inside these cards (like your Best-fit projects list) */
main .feature-list {
  padding-left: 1.1rem;
}

main .feature-list li {
  margin: 0.35rem 0;
}

/* Make headings inside cards feel a touch tighter */
main .card:not(.card-glow) h3,
main .p-4.rounded-4.border.bg-white h3,
main .p-4.rounded-4.border.bg-soft h3 {
  letter-spacing: -0.01em;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  main .card:not(.card-glow),
  main .p-4.rounded-4.border.bg-white,
  main .p-4.rounded-4.border.bg-soft {
    transition: none;
  }
  main .card:not(.card-glow):hover,
  main .p-4.rounded-4.border.bg-white:hover,
  main .p-4.rounded-4.border.bg-soft:hover {
    transform: none;
  }
}
