/* Pongal: the auction card under the kolam border, its price on a brass
   plate like the rim of a pongal pot's lid, the bid in cane purple.
   Builds on the plugin's own card styles. */
@import url("../../../components/auction_card.css");

.ed-card-auction, html.dark .ed-card-auction {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ed-card-auction:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ed-card-auction::before, html.dark .ed-card-auction::before {
  top: 0; left: 0; right: 0; height: 14px; border-radius: 0; z-index: 2;
  background: var(--kolam-band);
}
.ed-card-auction.auction-ended-winner::before { background: var(--kolam-band); filter: saturate(.6) brightness(1.08); }
.ed-card-auction .ed-folio { color: var(--theme-600); }

/* The price row: polished brass, a chased line of dots along its top */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0 -.25rem; padding: 1.05rem 1rem .85rem;
  background:
    radial-gradient(circle, rgba(124, 51, 23, .45) 1px, transparent 1.6px) 6px 5px / 9px 9px repeat-x,
    linear-gradient(180deg, rgba(255, 250, 230, .8), rgba(255, 250, 230, 0) 45%),
    linear-gradient(90deg, #e2a92e, #fbe3a0 32%, #ecc15e 60%, #c48f2a);
  color: #2e1820;
  border: 0 !important;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(124, 51, 23, .35), 0 6px 12px -8px rgba(90, 50, 10, .45);
}
html.dark .ed-card-auction .flex.items-end.justify-between.border-t {
  background:
    radial-gradient(circle, rgba(90, 56, 10, .5) 1px, transparent 1.6px) 6px 5px / 9px 9px repeat-x,
    linear-gradient(180deg, rgba(255, 244, 210, .5), rgba(255, 244, 210, 0) 45%),
    linear-gradient(90deg, #c9973a, #f1d283 32%, #d9ab48 60%, #a8791a);
}
.ed-card-auction .flex.items-end.justify-between.border-t * { color: #523240 !important; }
.ed-card-auction .auction-current-bid,
.ed-card-auction .font-display.text-2xl { font-family: var(--font-display); font-weight: 700 !important; letter-spacing: -.005em; font-size: clamp(1.35rem, 5vw, 1.6rem); color: #2e1820 !important; overflow-wrap: normal; white-space: nowrap; }

.ed-card-auction .info-btn { border: 1px solid var(--rule) !important; color: var(--ink) !important; border-radius: 999px !important; }
.ed-card-auction .info-btn:hover { border-color: var(--theme-500) !important; color: var(--theme-600) !important; }
/* The skin's ink for filled icon tiles also catches this round button, which has no fill; the icon follows the button. :is(#_) only lifts specificity past the tile rule. */
html body #px-spa-content .ed-card-auction .info-btn:is(.info-btn, #_) > svg { color: inherit !important; transform: none !important; filter: none !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; }
