/*
 * Project: auction
 * File: /auction.css
 * File Created: 2025-12-03, 10:33:43
 * Author: Wojciech Sobczak (wsobczak@gmail.com)
 * -----
 * Last Modified: 2025-12-04, 8:56:06
 * Modified By: Wojciech Sobczak (wsobczak@gmail.com)
 * -----
 * Copyright © 2021 - 2025 by vbert
 */
:root {
    --blue: #0052b1;
    --yellow: #fcc400;
}
.auction-rw {
    --bg: #0f172a;
    --panel: #ffffff;
    --accent: #ea384d;
    --accent-soft: #fef2f2;
    --muted: #6b7280;
    --stroke: #e5e7eb;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(234, 56, 77, 0.12), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
    padding: 24px;
    min-height: 100vh;
    box-sizing: border-box;
}

.auction-board {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.auction-title {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.auction-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pill-muted {
    background: #e2e8f0;
    color: #0f172a;
    min-width: 210px;
    justify-content: center;
    text-align: center;
}

.auction-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.auction-card {
    background: var(--panel);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.auction-card.is-updated {
    animation: floatRise 0.65s ease;
}

.card-body {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(320px, 1fr);
    gap: 14px;
    align-items: start;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.card-label {
    font-weight: 700;
    font-size: 1.05rem;
}

.card-topbid {
    color: var(--accent);
    font-weight: 700;
}

.bid-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bid-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--stroke);
}

.bid-item.is-updated {
    animation: floatRise 0.7s ease;
}

.bid-item:nth-child(1) {
    border-color: rgba(234, 56, 77, 0.35);
    background: linear-gradient(135deg, rgba(234, 56, 77, 0.05), #fff);
    box-shadow: 0 6px 20px rgba(234, 56, 77, 0.12);
}

.bid-item.empty {
    color: var(--muted);
}

.bid-place {
    font-weight: 700;
    color: #334155;
}

.bidder {
    font-weight: 600;
    color: #0f172a;
}

.price {
    font-weight: 700;
    color: var(--accent);
}

.auction-figure {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: #e2e8f0;
}

.auction-rw__image-reed {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.auction-figure:hover .auction-rw__image-reed {
    transform: scale(1.02);
    filter: saturate(1.05);
}

.zoom {
    display: block;
    text-decoration: none;
    color: inherit;
}

.auction-footer {
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
    padding: 8px 0 24px;
}

.auction-empty,
.auction-error {
    background: #fff;
    border: 1px dashed var(--stroke);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    grid-column: 1 / -1;
}

.auction-error {
    border-color: rgba(234, 56, 77, 0.4);
    color: var(--accent);
}

@keyframes floatRise {
    0% {
        opacity: 0;
        transform: scale(1) translateY(12px);
    }
    30% {
        opacity: 1;
        transform: scale(1.04) translateY(4px);
    }
    60% {
        transform: scale(1.04) translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 640px) {
    .auction-rw {
        padding: 16px;
    }

    .auction-title {
        font-size: 1.3rem;
    }

    .card-body {
        grid-template-columns: 1fr;
    }

    .bid-item {
        grid-template-columns: 26px 1fr auto;
        padding: 8px 10px;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* GLightBox */
.glightbox-clean .gslide-description {
    order: -1; /* description above image */
    background-color: transparent;
}

.glightbox-clean .gslide-media {
    order: 0;
}

.glightbox-clean .gdesc-inner {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--yellow);
    color: var(--blue);
}

.glightbox-clean .gslide-title {
    margin: 0;
    line-height: 1.34rem;
    color: var(--blue);
    font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', 'Open Sans', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}
