/* Trading Floor auction card: a lot on the trading post's counter. A
   ledger leaf under the double rule of a column head; the lot stands on
   the counter's polished wood under the banker's lamp, its lot number on
   a brass plate, the time left on a flap of the quote board, the live
   lamp lit green and the price in the board's mono.
   Builds on the plugin's own card styles. */
@import url("../../../components/auction_card.css");

.ed-card-auction, html.dark .ed-card-auction {
  position: relative;
  background: var(--tfl-leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius, 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.15), box-shadow .3s ease, border-color .2s ease;
}
.ed-card-auction:hover, .ed-card-auction:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(184, 145, 58, .55); }
@media (prefers-reduced-motion: reduce) { .ed-card-auction:hover, .ed-card-auction:focus-within { transform: none; } }
.ed-card-auction::before, html.dark .ed-card-auction::before {
  top: 0; bottom: auto; left: 0; right: 0; height: 6px; border-radius: 0; z-index: 2;
  background: var(--tfl-topline);
}
.ed-card-auction.auction-ended-winner::before { opacity: .55; }
/* The lot number, the auction's own, on a small brass plate */
.ed-card-auction .ed-folio { color: #0f2a20; font-family: var(--font-num); font-weight: 600; letter-spacing: -.02em; padding: .16rem .45rem; background: var(--tfl-brass-plate); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(15, 42, 32, .4); }
.ed-card-auction h3 { font-family: var(--font-display); font-weight: 700; unicode-bidi: plaintext; }

/* The photo well: the counter under its lamp */
.ed-card-auction > [class*="aspect-"] {
  border-bottom: 0 !important;
  background: var(--tfl-counter) !important;
}
.ed-card-auction > [class*="aspect-"] img { transform: translateY(-6%) scale(.68); filter: drop-shadow(0 10px 8px rgba(19, 36, 29, .35)); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.ed-card-auction:hover > [class*="aspect-"] img, .ed-card-auction:focus-within > [class*="aspect-"] img { transform: translateY(-9%) scale(.68); }
@media (prefers-reduced-motion: reduce) { .ed-card-auction:hover > [class*="aspect-"] img { transform: translateY(-6%) scale(.68); } }
/* The live lamp on a green enamel chit */
.ed-card-auction > [class*="aspect-"] > .absolute.top-3.right-4 { padding: .22rem .55rem; background: #0f3d2e; color: #8af0ac !important; border-radius: 2px; box-shadow: inset 0 -2px 0 #c9a24a, 0 2px 6px -2px rgba(0, 0, 0, .4); font-weight: 700; letter-spacing: .1em; }
.ed-card-auction > [class*="aspect-"] > .absolute.top-3.right-4 [style*="#16a34a"] { background: #3ccf6e !important; box-shadow: 0 0 6px #3ccf6e; }
/* The time left on a flap of the board, sitting on the counter's rail */
.ed-card-auction > [class*="aspect-"] > .absolute.bottom-3.left-4 {
  padding: .3rem .6rem; border-radius: 2px;
  background: var(--tfl-cell); color: var(--tfl-cell-ink) !important;
  box-shadow: var(--tfl-cell-ring);
}
.ed-card-auction > [class*="aspect-"] > .absolute.bottom-3.left-4 [data-end] { font-family: var(--font-num) !important; font-weight: 600; font-size: 13px; letter-spacing: -.03em; color: var(--tfl-cell-ink) !important; opacity: 1 !important; }

/* The price row: the board's mono over the double rule */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0; padding: 1rem 0 .2rem;
  background: none;
  border: 0 !important;
  border-top: 3px double rgba(184, 145, 58, .6) !important;
  border-radius: 0;
  box-shadow: none;
}
.ed-card-auction .flex.items-end.justify-between.border-t :is(span, p, div):not(.auction-current-bid):not(.font-display) { color: var(--ink-soft) !important; letter-spacing: .08em; }
.ed-card-auction .auction-current-bid,
.ed-card-auction .font-display.text-2xl { font-family: var(--font-num); font-weight: 700 !important; letter-spacing: -.04em; font-size: clamp(1.25rem, 5vw, 1.45rem); color: var(--ink) !important; overflow-wrap: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }

.ed-card-auction .info-btn { border: 1px solid var(--tfl-brass) !important; color: var(--ink) !important; border-radius: 50% !important; background: var(--paper-2); box-shadow: 0 2px 0 var(--rule); transition: transform .12s ease, box-shadow .12s ease, border-color .2s ease; }
.ed-card-auction .info-btn:hover { border-color: var(--tfl-accent) !important; }
.ed-card-auction .info-btn :is(svg, i) { color: var(--ink) !important; }
.ed-card-auction .info-btn:active { transform: translateY(2px); box-shadow: none; }
/* The status word inside the badge takes the badge's own ink */
.ed-status [style*="--ink-soft"] { color: inherit !important; }

/* The info button fills with ink on hover; its icon takes the paper colour
   with it instead of keeping the ink it has at rest. */
.ed-card-auction .info-btn:hover,
.ed-card-auction .info-btn:hover :is(svg, i) { color: var(--paper) !important; }
