/* Easter: the auction card under a row of painted eggs, its price on a
   cream panel edged with piped icing. 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, 20px);
  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(--egg-band), var(--paper-2);
}
.ed-card-auction.auction-ended-winner::before { background: var(--egg-band), #ffe39a; }
.ed-card-auction .ed-folio { color: var(--theme-600); }

/* The price row: cream, a dotted line of white icing just inside its edge */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0 -.25rem; padding: .95rem 1rem .8rem;
  background: #fff6dc;
  color: #2c2440;
  border: 0 !important;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(44, 36, 64, .08);
}
.ed-card-auction .flex.items-end.justify-between.border-t::before {
  content: ''; position: absolute; inset: 5px; border: 2px dotted #ffffff; border-radius: 12px; pointer-events: none;
}
.ed-card-auction .flex.items-end.justify-between.border-t * { color: #4a4163 !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: 1.7rem; color: #5f42bd !important; }

.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 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, 20px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
html body .ed-card-auction::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px; border-radius: 0; z-index: 2; pointer-events: none;
  background: var(--egg-band), var(--paper-2);
}
html body .ed-card-auction.auction-ended-winner::before { background: var(--egg-band), #ffe39a; }

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