/* ============================================
   TURATHYA - AUCTIONS PAGE STYLES
   Filters sidebar and grid layout
   ============================================ */
@import url('../components/lot-card.css');

/* Keep centered in RTL mode */
body.rtl .page-header {
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-title-subtitle);
}

.auctions-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
}

.filters-sidebar {
    position: sticky;
    top: calc(var(--space-24) + 60px);
    height: fit-content;
}

.auctions-content {
    min-width: 0;
}

.auctions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: var(--border-thin) solid var(--color-border-light);
}

/* Mobile responsive */
@media (max-width: 1023px) {
    .auctions-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: var(--space-8);
    }

    .auctions-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
    }
}


/* ============================================
   PREMIUM LOT CARDS — Christie's / Sotheby's
   ============================================ */

/* Section background warmth */
main.section {
    background: linear-gradient(180deg, #f7f4f0 0%, #f2ede7 100%);
}

/* ── Section header upgrade ── */
.lot-section-header {
    text-align: center;
    margin-bottom: 44px;
}

.lot-section-label,
.col-intro-label {
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #C6A46C;
    margin-bottom: 12px;
}

.lot-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 400;
    color: var(--theme-text);
    margin: 0 0 8px;
    line-height: 1.2;
}

.lot-section-sub {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #999;
    margin: 0 0 18px;
}

.lot-section-divider {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C6A46C, transparent);
    margin: 0 auto;
}

/* ── Card styles now in css/components/lot-card.css ── */
/* Old rules below kept only for legacy badge compat   */

    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* Pulse dot inside badge */
.badge-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: lot-pulse 2.2s ease-in-out infinite;
}

@keyframes lot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.65); }
}

/* ── Card body ── */
.lot-body {
    padding: 20px 22px 22px;
}

.lot-cat {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 7px;
}

.lot-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.30;
    color: var(--theme-text);
    margin: 0 0 5px;
}

.lot-sub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #bbb;
    margin: 0 0 16px;
}

.lot-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin-bottom: 14px;
}

/* ── Price + timer row ── */
.lot-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.lot-price-label {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 3px;
}

.lot-price-value {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text);
    letter-spacing: -0.3px;
}

/* Countdown timer */
.lot-timer {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #aaa;
    text-align: right;
    white-space: nowrap;
    transition: color 0.3s;
}

.lot-timer.ending-soon-timer {
    color: #C05A28;
    font-weight: 600;
}

/* ── Search toolbar upgrade ── */
.auctions-toolbar .form-label {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 6px;
}

/* Category filter — same look as collection page select */
#category-filter {
    height: 56px;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 0 16px;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    background: white;
    font-size: 14px;
    color: #444;
    font-family: 'Inter', var(--font-arabic), sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}

#category-filter:focus {
    outline: none;
    border-color: #C6A46C;
    box-shadow: 0 0 0 3px rgba(198, 164, 108, 0.12);
}

/* ── RTL overrides ── */
html[dir="rtl"] .lot-num-tag {
    left: auto;
    right: 11px;
}

html[dir="rtl"] .lot-badge-wrap {
    right: auto;
    left: 11px;
}

html[dir="rtl"] .lot-price-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lot-timer {
    text-align: left;
}

html[dir="rtl"] .lot-body {
    text-align: right;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .lot-body {
        padding: 16px 18px 18px;
    }

    .lot-title {
        font-size: 15px;
    }

    .lot-price-value {
        font-size: 15px;
    }
}