/* Coins Co. Auctions – auction event components. Colors come from the child theme tokens.
   The theme stylesheet (loaded later) overrides the look; this file only needs to work on its own. */

.cca-lot-number {
	display: inline-block;
	margin: 0 0 .35em;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cca-accent, #b43c38);
}

/* Lot card meta line: "LOT 22 · Closes Nov 7, 7:01 pm" */
.cca-lot-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .6rem;
	align-items: baseline;
	margin: .25rem 0 .5rem;
	font-size: .82rem;
	color: var(--cca-muted, #6b5f57);
}
.cca-lot-meta .cca-lot-number { margin: 0; }

.cca-badge {
	display: inline-block;
	padding: .3em .7em;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
	background: var(--cca-gold-soft, #f4ead0);
	color: var(--cca-ink, #2a211d);
}
.cca-badge--live { background: var(--cca-accent, #b43c38); color: #fff; }
.cca-badge--closed { background: var(--cca-line, #e6ddd0); color: var(--cca-muted, #6b5f57); }

/* Auction schedule box on the catalog page */
.cca-schedule {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--cca-line, #e6ddd0);
	border-left: 4px solid var(--cca-orange, #dd823b);
	border-radius: 8px;
	background: var(--cca-surface, #fff);
}
.cca-schedule dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: .75rem 1.5rem;
	margin: .9rem 0 0;
}
.cca-schedule dt {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cca-muted, #6b5f57);
}
.cca-schedule dd { margin: .15rem 0 0; font-weight: 600; }
.cca-schedule__note { margin: 1rem 0 0; font-size: .9rem; color: var(--cca-muted, #6b5f57); }

/* Upcoming auctions grid */
.cca-auction-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}
.cca-auction-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--cca-line, #e6ddd0);
	border-radius: 10px;
	background: var(--cca-surface, #fff);
	transition: box-shadow .2s ease, transform .2s ease;
}
.cca-auction-card:hover { box-shadow: 0 10px 28px rgba(42, 33, 29, .1); transform: translateY(-2px); }
.cca-auction-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--cca-ink, #2a211d);
}
.cca-auction-card__media { overflow: hidden; }
.cca-auction-card__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.cca-auction-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 30% 30%, #ccaf0b 0, #dd823b 35%, #b43c38 70%, #5a1f1d 100%);
}
.cca-auction-card__media .cca-badge { position: absolute; top: .9rem; left: .9rem; }
.cca-auction-card__body { display: flex; gap: 1rem; padding: 1.25rem; }
.cca-auction-card__date {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.9rem;
	margin: 0;
	border-radius: 8px;
	background: var(--cca-gold-soft, #f4ead0);
	line-height: 1;
}
.cca-auction-card__month { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--cca-accent, #b43c38); }
.cca-auction-card__day { font-size: 1.6rem; font-weight: 800; color: var(--cca-ink, #2a211d); }
.cca-auction-card__title { margin: 0 0 .4rem; font-size: 1.2rem; line-height: 1.25; }
.cca-auction-card__title a { color: inherit; text-decoration: none; }
.cca-auction-card__meta { margin: 0 0 1rem !important; padding: 0 !important; list-style: none !important; font-size: .9rem; color: var(--cca-muted, #6b5f57); }
.cca-auction-card__meta li { margin: 0; padding: 0; }
.cca-auction-card__meta li + li { margin-top: .2rem; }
.cca-empty { padding: 1.5rem; border: 1px dashed var(--cca-line, #e6ddd0); border-radius: 8px; text-align: center; }

/* Bid increments table */
.cca-increments { width: 100%; max-width: 560px; border-collapse: collapse; }
.cca-increments th, .cca-increments td { padding: .7rem 1rem; border-bottom: 1px solid var(--cca-line, #e6ddd0); text-align: left; }
.cca-increments thead th { background: var(--cca-ink, #2a211d); color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.cca-increments tbody tr:nth-child(even) { background: var(--cca-bg, #fbf8f3); }

/* Pay for all won lots */
.cca-pay-all {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--cca-gold, #ccaf0b);
	border-radius: 8px;
	background: var(--cca-gold-soft, #f4ead0);
}
.cca-pay-all h3 { margin-top: 0; }
.cca-pay-all ul { margin: 0 0 1rem 1.1rem; }

@media (max-width: 480px) {
	.cca-auction-grid { grid-template-columns: 1fr; }
	.cca-schedule { padding: 1rem; }
}
