/* Songkran: the auction card under the pha sin hem, its price on a strip
   of brushed silver like the rim of a khan bowl, the bid in water blue.
   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(--sin);
}
.ed-card-auction.auction-ended-winner::before { background: var(--sin); filter: saturate(.6) brightness(1.08); }
.ed-card-auction .ed-folio { color: var(--theme-600); }

/* The price row: brushed silver, bright along its upper edge */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0 -.25rem; padding: .95rem 1rem .85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #c3ccd6, #eef2f6 34%, #dbe2e9 62%, #b7c1cc);
  color: #0f2f3b;
  border: 0 !important;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(15, 47, 59, .12), 0 6px 12px -8px rgba(15, 47, 59, .35);
}
html.dark .ed-card-auction .flex.items-end.justify-between.border-t {
  background:
    linear-gradient(180deg, rgba(255, 244, 220, .5), rgba(255, 244, 220, 0) 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #a9b1ba, #e6e2d8 34%, #cdd1d4 62%, #9aa3ad);
}
.ed-card-auction .flex.items-end.justify-between.border-t * { color: #2c4c58 !important; }
.ed-card-auction .auction-current-bid,
.ed-card-auction .font-display.text-2xl { font-family: var(--font-ui); font-weight: 700 !important; letter-spacing: -.01em; font-size: clamp(1.35rem, 5vw, 1.6rem); color: #075f91 !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 frame at the weight the theme's home skin gave it, so it still
   wins over the plain rules above. */
html body .ed-card-auction {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
}
/* Titles come from the database with no dir; in Arabic and Urdu an
   English name keeps its own order. */
html[dir="rtl"] body .ed-card-auction :is(h2, h3, h4) { unicode-bidi: plaintext; }

/* 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); }
