/* Singles' Day auction card: the lot brought out onto the white floor. A
   white card under the coral stroke; the product stands in a window
   on the plum kerb in front of the coral wall of 1111 strokes, the time left on a
   split-flap cell, the live stroke lit coral, the price in night 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(--sgd-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(18, 5, 26, .78); border-radius: 4px; }
.ed-card-auction h3 { font-family: var(--font-display); font-weight: 700; unicode-bidi: plaintext; }

/* The photo well: the wall of 1111 strokes behind, the plum kerb 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%, #fbe8e9 70%, #fff6f4) ,
    var(--sgd-wall) !important;
}
html.dark .ed-card-auction > [class*="aspect-"] {
  background:
    radial-gradient(46% 16% at 50% 84%, rgba(255, 160, 180, .45), rgba(255, 160, 180,  0) 70%),
    linear-gradient(180deg, transparent 0 70%, #1a0724 70%, #12051a) ,
    var(--sgd-wall) !important;
}
.ed-card-auction > [class*="aspect-"] img { transform: translateY(-3%) scale(.7); filter: drop-shadow(0 10px 8px rgba(43, 15, 58, .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 stroke and the time left */
.ed-card-auction > [class*="aspect-"] > .absolute.top-3.right-4 { padding: .22rem .55rem; background: #5b2a73; color: #ffffff !important; border-radius: 5px; box-shadow: 0 0 0 2px #2b0f3a, 0 0 14px rgba(91, 42, 115, .55); font-weight: 700; 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(--sgd-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: #c6ff3d !important; opacity: 1 !important; }

/* The price row: night 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: 4px !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(--sgd-coral) !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); }
