/**
 * FindEdition — platform-98.2-cards.css
 * Module card layouts for Mobiles, Autos, and Recipes.
 *
 * Copyright (c) FindEdition Developers. All rights reserved.
 */

/* —— MOBILE: technical product card, square contain stage —— */
.fe982-device {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--mobile-surface-raised, #0f172a);
  border: 1px solid var(--mobile-border-strong, #1e293b);
  border-radius: .9rem;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.fe982-device:hover {
  transform: translateY(-3px);
  border-color: var(--mobile-primary, #38bdf8);
  box-shadow: 0 14px 32px rgba(14, 165, 233, .16);
}
.fe982-device:focus-within { outline: 2px solid var(--mobile-primary, #38bdf8); outline-offset: 2px; }
.fe982-device__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(56,189,248,.12), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}
.fe982-device__canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  box-sizing: border-box;
}
.fe982-device__canvas .fe981-card-img,
.fe982-device__canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}
.fe982-device__brand {
  position: absolute; top: .6rem; left: .6rem; z-index: 3;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: #38bdf8; color: #0b1220; border-radius: .3rem; padding: .2rem .45rem;
}
.fe982-device__pill {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 3;
  font-size: .65rem; font-weight: 700; background: #fbbf24; color: #111827;
  border-radius: .3rem; padding: .18rem .4rem;
}
.fe982-device__shots {
  position: absolute; bottom: .6rem; right: .6rem; z-index: 3;
  font-size: .65rem; color: #e2e8f0; background: rgba(15,23,42,.75);
  border-radius: .3rem; padding: .18rem .4rem;
}
.fe982-device__panel {
  display: flex; flex-direction: column; gap: .45rem;
  padding: .95rem 1rem 1.1rem;
}
.fe982-device__name { margin: 0; font-size: 1rem; font-weight: 750; line-height: 1.25; color: #f8fafc; }
.fe982-device__name-link {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fe982-device__name-link:hover { color: #7dd3fc; }
.fe982-device__commerce {
  display: flex; flex-wrap: wrap; gap: .4rem .65rem; align-items: center;
}
.fe982-device__tier {
  font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #7dd3fc; border: 1px solid rgba(56,189,248,.35); border-radius: .3rem; padding: .12rem .4rem;
}
.fe982-device__score { margin: 0; font-size: .85rem; color: #cbd5e1; }
.fe982-device__score-value { font-size: 1.05rem; font-weight: 800; color: #fbbf24; }
.fe982-device__score-scale { color: #94a3b8; margin-right: .35rem; }
.fe982-device__score-count { color: #94a3b8; font-size: .78rem; }
.fe982-device__chips {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
}
.fe982-device__chip {
  display: block; font-size: .72rem; color: #cbd5e1; background: rgba(30,41,59,.9);
  border-radius: .4rem; padding: .35rem .45rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fe982-device__chip strong { display: block; color: #e2e8f0; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.fe982-device__cta {
  margin-top: auto; padding-top: .35rem;
  font-size: .8125rem; font-weight: 750; color: #38bdf8; text-decoration: none;
}
.fe982-device__cta:hover { text-decoration: underline; }
.fe982-device.is-compact .fe982-device__chips { display: none; }

/* —— AUTO: wide catalogue card, price on media —— */
.fe982-vehicle {
  display: flex; flex-direction: column; height: 100%;
  background: #18181b; color: #fafafa;
  border: 1px solid #3f3f46; border-radius: .45rem; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.fe982-vehicle:hover {
  transform: translateY(-2px);
  border-color: #ef4444;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.fe982-vehicle:focus-within { outline: 2px solid #f59e0b; outline-offset: 2px; }
.fe982-vehicle__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #09090b;
}
.fe982-vehicle__media .fe981-card-img,
.fe982-vehicle__media img {
  width: 100%; height: 100%; object-fit: cover !important;
}
.fe982-vehicle__overlay {
  position: absolute; top: .55rem; left: .55rem; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
}
.fe982-vehicle__make {
  font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: #ef4444; color: #fff; padding: .2rem .45rem;
}
.fe982-vehicle__trim {
  font-size: .65rem; font-weight: 700; background: rgba(9,9,11,.82); color: #fafafa;
  padding: .18rem .4rem;
}
.fe982-vehicle__count {
  position: absolute; top: .55rem; right: 3.4rem; z-index: 3;
  font-size: .65rem; background: rgba(9,9,11,.8); color: #e4e4e7; padding: .18rem .4rem;
}
.fe982-vehicle__priceband {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: .65rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  font-size: 1rem; font-weight: 800;
}
.fe982-vehicle__priceband .au-price { color: #fafafa !important; }
.fe982-vehicle__body {
  display: flex; flex-direction: column; gap: .4rem;
  padding: .9rem .95rem 1.05rem; flex: 1;
}
.fe982-vehicle__title {
  margin: 0; font-size: 1.02rem; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; line-height: 1.2;
}
.fe982-vehicle__title-link {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fe982-vehicle__title-link:hover { color: #f59e0b; }
.fe982-vehicle__line {
  margin: 0; display: flex; flex-wrap: wrap; gap: .35rem;
  font-size: .75rem; color: #a1a1aa;
}
.fe982-vehicle__line span {
  border: 1px solid #3f3f46; border-radius: .2rem; padding: .1rem .35rem;
}
.fe982-vehicle__rating { margin: 0; font-size: .84rem; color: #d4d4d8; }
.fe982-vehicle__rating strong { color: #f59e0b; }
.fe982-vehicle__facts {
  list-style: none; margin: .15rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.fe982-vehicle__facts li {
  font-size: .72rem; color: #e4e4e7; background: #27272a;
  border-radius: .25rem; padding: .25rem .45rem;
}
.fe982-vehicle__facts em { font-style: normal; font-weight: 700; color: #fafafa; margin-right: .2rem; }
.fe982-vehicle__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: .45rem .85rem; font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none; color: #18181b; background: #f59e0b;
  border-radius: .25rem;
}
.fe982-vehicle__cta:hover { background: #fbbf24; color: #18181b; }
.fe982-vehicle.is-compact .fe982-vehicle__facts { display: none; }

/* —— RECIPE: editorial food card, definition-list facts —— */
.fe982-dish {
  display: flex; flex-direction: column; height: 100%;
  background: #fffaf5; border: 1px solid #f0e4d7; border-radius: 1.15rem;
  overflow: hidden; box-shadow: 0 10px 28px rgba(194, 65, 12, .08);
  transition: transform .2s, box-shadow .2s;
}
.fe982-dish:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(194, 65, 12, .14);
}
.fe982-dish:focus-within { outline: 2px solid #ea580c; outline-offset: 2px; }
.fe982-dish__figure {
  position: relative; margin: 0;
  aspect-ratio: 3 / 2;
  background: #ffedd5;
}
.fe982-dish__figure .fe981-card-img,
.fe982-dish__figure img {
  width: 100%; height: 100%; object-fit: cover !important;
}
.fe982-dish__ribbon {
  position: absolute; top: .75rem; left: .75rem; z-index: 3;
  margin: 0; font-size: .7rem; font-weight: 800;
  background: #ea580c; color: #fff; border-radius: 999px; padding: .28rem .7rem;
}
.fe982-dish__clock {
  position: absolute; bottom: .75rem; left: .75rem; z-index: 3;
  font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(28, 25, 23, .78); border-radius: 999px; padding: .28rem .65rem;
}
.fe982-dish__copy {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.05rem 1.15rem 1.2rem; flex: 1;
}
.fe982-dish__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem; line-height: 1.3; color: #292524; font-weight: 700;
}
.fe982-dish__title-link {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fe982-dish__title-link:hover { color: #c2410c; }
.fe982-dish__facts {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .65rem;
}
.fe982-dish__facts > div { min-width: 0; }
.fe982-dish__facts dt {
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #a8a29e; margin: 0 0 .1rem;
}
.fe982-dish__facts dd {
  margin: 0; font-size: .86rem; color: #44403c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fe982-dish__rating-num { font-weight: 800; color: #b45309; }
.fe982-dish__rating-count { color: #78716c; font-size: .78rem; }
.fe982-dish__diet {
  align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: #9a3412; background: #ffedd5; border-radius: .4rem; padding: .18rem .5rem;
}
.fe982-dish__cta {
  margin-top: auto; padding-top: .2rem;
  font-size: .85rem; font-weight: 800; color: #c2410c; text-decoration: none;
}
.fe982-dish__cta:hover { text-decoration: underline; }

/* Grid wrappers */
.mhp8821-grid .fe982-device,
.ahp8821-grid .fe982-vehicle,
.rhp8821-grid .fe982-dish,
.mf-phone-card-wrap .fe982-device,
.au-vehicle-card-wrap .fe982-vehicle,
.rp-recipe-card-wrap .fe982-dish { height: 100%; }

/* Hide legacy 98.1 card shells if both classes somehow appear */
.fe980-card-actions { display: none !important; }

@media (max-width: 640px) {
  .fe982-device__chips { grid-template-columns: 1fr; }
  .fe982-dish__facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fe982-device, .fe982-vehicle, .fe982-dish { transition: none; }
}
