/* SMT Latest Purchases — front-end styling
   Designed to blend with Sell-My.Tech global CSS (smt-card, smt-safe, smt-pill, --mint, etc.)
*/

.smt-lp{ padding: 0; }
.smt-lp__head{ margin: 0 0 18px; }
.smt-lp__kicker{ margin-bottom: 10px; }

/* If .smt-pill isn't present on a given template, this still looks fine */
.smt-lp__pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.smt-lp__title{
  text-align:center;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: #fff;
}

.smt-lp__sub{
  margin: 12px auto 0;
  max-width: 62ch;
  text-align:center;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.6;
}

.smt-lp__filters{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.smt-lp__filter{
  appearance:none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .01em;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.smt-lp__filter:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(52,245,197,.55);
}

.smt-lp__filter.is-active{
  color:#04140f;
  background: rgba(52,245,197,.92);
  border-color: rgba(52,245,197,.92);
}

.smt-lp__grid{
  display:grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Responsive columns */
@media (max-width: 640px){
  .smt-lp__grid{ grid-template-columns: 1fr; }
}

.smt-lp__card{
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.smt-lp__media{
  position: relative;
  /* Lock image ratio to 3:4 (ideal for side-by-side Technics / decks) */
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(500px 280px at 20% 25%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(420px 260px at 80% 35%, rgba(52,245,197,.10), transparent 60%),
    rgba(255,255,255,.03);
}

.smt-lp__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: translateZ(0);
  transition: transform .25s ease;
}

/* Premium hover zoom */
.smt-lp__card:hover .smt-lp__img{ transform: scale(1.06); }
@media (prefers-reduced-motion: reduce){
  .smt-lp__img{ transition: none; }
  .smt-lp__card:hover .smt-lp__img{ transform: none; }
}

.smt-lp__img--empty{
  background:
    radial-gradient(500px 280px at 20% 25%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(420px 260px at 80% 35%, rgba(52,245,197,.12), transparent 60%),
    rgba(255,255,255,.05);
}


.smt-lp__body{ padding: 16px 16px 14px; }

.smt-lp__meta{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.smt-lp__chips{ display:flex; flex-wrap:wrap; gap: 8px; }

.smt-lp__chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 750;
}

.smt-lp__date{
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.smt-lp__h3{
  margin: 0 0 10px;
  color:#fff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.smt-lp__dl{ margin:0; display:grid; gap: 8px; }
.smt-lp__row{ display:flex; gap: 10px; justify-content: space-between; }
.smt-lp__row dt{ color: rgba(255,255,255,.6); font-size: 12px; font-weight: 800; letter-spacing:.02em; }
.smt-lp__row dd{ margin:0; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; text-align:right; }

.smt-lp__excerpt{
  margin: 12px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.55;
}

/* Hidden AI helper text (kept accessible to crawlers but not humans) */
.smt-lp__ai{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border:0 !important;
}

/* Empty state */
.smt-lp__empty{ padding: 18px; color: rgba(255,255,255,.78); }
.smt-lp__empty strong{ color:#fff; }

/* Filter transitions */
.smt-lp__card{ transition: opacity .18s ease, transform .18s ease; }
.smt-lp__card.is-hidden{ opacity: 0; transform: translateY(4px); pointer-events:none; position:absolute !important; left:-9999px !important; }
