@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ══════════════════════════════
   BASE
══════════════════════════════ */

.auctions-page {
    font-family: 'DM Sans', sans-serif;
    background: #f7f5f2;
    min-height: 80vh;
    padding-bottom: 60px;
}

/* ── Header ── */
.auctions-header {
    background: #fff;
    border-bottom: 1px solid #ebe8e3;
    padding: 40px 16px 28px;
}

.auctions-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.auctions-sub {
    font-size: 0.875rem;
    color: #888;
    font-weight: 300;
    margin: 0;
}

/* ── Section label ── */
.section-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b0a89c;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebe8e3;
}

/* ══════════════════════════════
   AUCTION CARD
══════════════════════════════ */

.auction-card {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.auction-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.auction-img-wrap {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
}

.auction-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-img { transform: scale(1.03); }

.auction-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
}

.auction-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.auction-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.auction-meta {
    font-size: 0.78rem;
    color: #999;
    font-weight: 300;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auction-meta i { color: #c0b8b0; font-size: 0.72rem; flex-shrink: 0; }

.auction-desc {
    font-size: 0.83rem;
    color: #666;
    font-weight: 300;
    line-height: 1.6;
    margin: 10px 0 14px;
    flex: 1;
}

/* Countdown */
.auction-countdown {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #d94f4f;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-dot {
    width: 6px;
    height: 6px;
    background: #d94f4f;
    border-radius: 50%;
    flex-shrink: 0;
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* Download button */
.btn-download {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    transition: opacity 0.18s ease;
    margin-top: auto;
}

.btn-download:hover { opacity: 0.8; color: #fff; text-decoration: none; }

/* ── Empty state ── */
.empty-auctions {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px solid #ebe8e3;
    border-radius: 14px;
    color: #c0b8b0;
    width: 100%;
}

.empty-auctions svg { margin-bottom: 14px; }
.empty-auctions p   { font-size: 0.875rem; margin: 0; }

/* ── Past auctions ── */
.past-row {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: background 0.15s ease;
    width: 100%;
}

.past-row:hover { background: #faf9f7; }

.past-thumb {
    width: 60px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e4e0da;
    flex-shrink: 0;
}

.past-info { flex: 1; min-width: 0; }

.past-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.past-date { font-size: 0.7rem; color: #b0a89c; }

.btn-past-dl {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #faf9f7;
    border: 1px solid #e4e0da;
    color: #888;
    border-radius: 6px;
    padding: 6px 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.btn-past-dl:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    text-decoration: none;
}

/* ── Lightbox ── */
#auc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 12px;
}

#auc-lightbox.open { opacity: 1; pointer-events: all; }

#auc-lb-img {
    max-width: 96vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    display: block;
}

.auc-lb-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 2001;
}

.auc-lb-close:hover { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════
   DESKTOP — 768px +
══════════════════════════════ */

@media (min-width: 768px) {
    .auctions-header { padding: 48px 24px 36px; }
    .auction-img     { height: 240px; }
    .auction-card    { margin-bottom: 24px; }
}

/* ══════════════════════════════
   MOBILE — up to 767px
══════════════════════════════ */

@media (max-width: 767px) {

    /* Force full width on every Bootstrap col inside the row */
    .auctions-page .row > [class*="col-"] {
        width: 95% !important;
        max-width: 96% !important;
        flex: 0 0 100% !important;
        padding-left: 0;
        padding-right: 0;

    }

    .container-fluid.px-4 {
        padding-left: 20px !important;
        padding-right: 14px !important;
    }

    .auction-img { height: 220px; }

    .auction-card-title { font-size: 0.92rem; }

    /* Stack past-row tighter on very small screens */
    .past-row { gap: 10px; padding: 10px; }
    .past-thumb { width: 52px; height: 40px; }
    .btn-past-dl { padding: 5px 8px; font-size: 0.6rem; }
}

/* ══════════════════════════════
   VERY SMALL — up to 400px
══════════════════════════════ */

@media (max-width: 400px) {
    .auctions-title  { font-size: 1.3rem; }
    .auction-img     { height: 190px; }
    .btn-download    { font-size: 0.7rem; padding: 11px 14px; }
}