/* Draw Hall auction card: the lot brought out onto the studio floor. A
   white card under the LED strip; the product stands in a pool of light
   on the glossy floor in front of the blue LED wall, the time left on a
   split-flap cell, the live tally lit red, the price in studio figures.
   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(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), 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); }
@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: 4px; border-radius: 0; z-index: 2;
  background: var(--drh-topline);
}
.ed-card-auction.auction-ended-winner::before { opacity: .55; }
.ed-card-auction .ed-folio { color: #ffffff; font-family: var(--font-num); font-weight: 700; padding: .15rem .45rem; background: rgba(6, 10, 28, .78); border-radius: 4px; }
.ed-card-auction h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; unicode-bidi: plaintext; }

/* The photo well: the LED wall behind, the glossy floor in front, a pool
   of light where the lot stands */
.ed-card-auction > [class*="aspect-"] {
  border-bottom: 0 !important;
  background:
    radial-gradient(46% 16% at 50% 84%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, transparent 0 70%, #e7ecf8 70%, #f6f8ff) ,
    var(--drh-wall) !important;
}
html.dark .ed-card-auction > [class*="aspect-"] {
  background:
    radial-gradient(46% 16% at 50% 84%, rgba(147, 171, 255, .45), rgba(147, 171, 255, 0) 70%),
    linear-gradient(180deg, transparent 0 70%, #0a1030 70%, #060a1c) ,
    var(--drh-wall) !important;
}
.ed-card-auction > [class*="aspect-"] img { transform: translateY(-3%) scale(.7); filter: drop-shadow(0 10px 8px rgba(11, 20, 51, .35)); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.ed-card-auction:hover > [class*="aspect-"] img { transform: translateY(-6%) scale(.7); }
@media (prefers-reduced-motion: reduce) { .ed-card-auction:hover > [class*="aspect-"] img { transform: translateY(-3%) scale(.7); } }
/* The live tally and the time left */
.ed-card-auction > [class*="aspect-"] > .absolute.top-3.right-4 { padding: .22rem .55rem; background: var(--drh-red-fill, #e0103d); color: #ffffff !important; border-radius: 5px; box-shadow: 0 0 0 2px #0b1433, 0 0 14px rgba(255, 31, 75, .55); font-weight: 800; letter-spacing: .08em; }
.ed-card-auction > [class*="aspect-"] > .absolute.top-3.right-4 [style*="#16a34a"] { background: #ffffff !important; }
.ed-card-auction > [class*="aspect-"] > .absolute.bottom-3.left-4 {
  padding: .3rem .6rem; border-radius: 5px;
  background: var(--drh-flap); color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 10px -4px rgba(0, 0, 0, .5);
}
.ed-card-auction > [class*="aspect-"] > .absolute.bottom-3.left-4 [data-end] { font-family: var(--font-num) !important; font-weight: 700; font-size: 13px; letter-spacing: -.01em; color: #ffc21f !important; opacity: 1 !important; }

/* The price row: studio figures over a fine rule */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0; padding: .9rem 0 .2rem;
  background: none;
  border: 0 !important;
  border-top: 1px solid var(--rule) !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: -.03em; font-size: clamp(1.3rem, 5vw, 1.5rem); color: var(--ink) !important; overflow-wrap: normal; white-space: nowrap; font-variant-numeric: tabular-nums; }

.ed-card-auction .info-btn { border: 1px solid var(--rule) !important; color: var(--ink) !important; border-radius: 10px !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(--drh-blue) !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; }

/* Pointed at or focused, the card's button keeps the base button colours:
   the lighter hover colour drops its label under 4.5:1. */
html body .ed-card-auction .ed-btn-primary:is(:hover, :focus-visible),
html.dark body .ed-card-auction .ed-btn-primary:is(:hover, :focus-visible) { background: var(--btn-bg); color: var(--btn-ink); }
