/* Mid-Autumn: the auction card under the moon phases, its price on a
   rice-paper label with a pressed scallop edge, like the slip inside a
   mooncake box. 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, 18px);
  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(--phase-band), var(--paper-2);
}
.ed-card-auction.auction-ended-winner::before { background: var(--phase-band), #f6dc96; }
.ed-card-auction .ed-folio { color: var(--theme-600); }

/* The price row: rice paper, a dashed line pressed just inside its edge */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0 -.25rem; padding: .95rem 1rem .8rem;
  background: radial-gradient(140px 70px at 100% 0%, rgba(246, 220, 150, .55), transparent 70%), #fbf3e2;
  color: #251c40;
  border: 0 !important;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(217, 169, 76, .4);
}
.ed-card-auction .flex.items-end.justify-between.border-t::before {
  content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(192, 122, 53, .45); border-radius: 10px; pointer-events: none;
}
.ed-card-auction .flex.items-end.justify-between.border-t * { color: #453a63 !important; }
.ed-card-auction .auction-current-bid,
.ed-card-auction .font-display.text-2xl { font-family: var(--font-display); font-weight: 700 !important; font-size: clamp(1.5rem, 5vw, 1.8rem); color: #74356a !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 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); }
