/* Kite Festival: the auction card under a string of little kites, its
   price on a sheet of white kite paper with a two-tone corner pasted on.
   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(--kite-band), var(--paper-2);
}
.ed-card-auction.auction-ended-winner::before { background: var(--kite-band), #ffd27a; }
.ed-card-auction .ed-folio { color: var(--theme-600); }

/* The price row: kite paper, a red-and-gold corner pasted on */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0 -.25rem; padding: .95rem 1rem .8rem;
  background: linear-gradient(135deg, #f04a23 0 14px, #ffb21e 14px 22px, transparent 22px), #ffffff;
  color: #14213d;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(20, 33, 61, .1), 0 6px 12px -8px rgba(20, 33, 61, .35);
}
[dir="rtl"] .ed-card-auction .flex.items-end.justify-between.border-t { background: linear-gradient(225deg, #f04a23 0 14px, #ffb21e 14px 22px, transparent 22px), #ffffff; }
html.dark .ed-card-auction .flex.items-end.justify-between.border-t { background: linear-gradient(135deg, #ff6a3d 0 14px, #ffbe3d 14px 22px, transparent 22px), #fff4e4; }
html.dark[dir="rtl"] .ed-card-auction .flex.items-end.justify-between.border-t { background: linear-gradient(225deg, #ff6a3d 0 14px, #ffbe3d 14px 22px, transparent 22px), #fff4e4; }
.ed-card-auction .flex.items-end.justify-between.border-t * { color: #33415f !important; }
.ed-card-auction .auction-current-bid,
.ed-card-auction .font-display.text-2xl { font-family: var(--font-ui); font-weight: 800 !important; letter-spacing: -.02em; font-size: clamp(1.35rem, 5vw, 1.6rem); color: #1f47c7 !important; overflow-wrap: normal; white-space: nowrap; }

.ed-card-auction .info-btn { border: 1px solid var(--rule) !important; color: var(--ink) !important; border-radius: 10px !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, 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; }
