/* Styles for templates/dashboard-auction.html (/auction) only. Scope every
   rule under .auc-page — do not add global rules here. The thumbnail strip
   keeps the legacy .auction_list_carousel classes because slick in main.js
   binds to them. */

.auc-page {
    font-family: var(--ff-secondary);
    color: var(--core-1-hex);
    background: var(--canvas-base-hex);
}

.auc-page .auc-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.auc-page .auc-hero {
    padding: 48px 0 36px;
    text-align: center;
}

.auc-page .auc-hero h1 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h1);
    letter-spacing: var(--track-title-primary);
    margin: 0 0 14px;
    text-wrap: balance;
}

.auc-page .auc-hero .auc-answer {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 auto 22px;
    color: rgba(var(--core-1-rgb), 0.78);
}

.auc-page .auc-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-1-rgb), 0.1);
    color: var(--accent-1-hex);
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 20px;
    margin-bottom: 18px;
}

.auc-page .auc-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-1-hex);
    animation: auc-pulse 1.4s ease-in-out infinite;
}

@keyframes auc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.auc-page .auc-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    background: var(--light-bg-hex);
    border-radius: 999px;
    padding: 10px 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.auc-page .auc-countdown output {
    font-variant-numeric: tabular-nums;
    color: var(--core-2-hex);
    font-size: 1.15rem;
}

.auc-page .auc-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- Month headers & auction cards ---------- */
.auc-page .auc-list {
    padding: 12px 0 44px;
}

.auc-page .auc-month {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h3);
    margin: 34px 0 16px;
}

.auc-page .auc-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    background: var(--canvas-base-hex);
    border: 1px solid var(--ui-gray-hex);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    padding: 22px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease-in-out;
}

.auc-page .auc-card:hover {
    box-shadow: var(--shadow-lg);
}

.auc-page .auc-card--live {
    border-color: rgba(var(--accent-1-rgb), 0.5);
}

.auc-page .auc-date {
    text-align: center;
    background: var(--light-bg-hex);
    border-radius: 1rem;
    padding: 18px 10px;
    align-self: start;
}

.auc-page .auc-date a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.auc-page .auc-date .auc-weekday {
    display: block;
    font-size: var(--fz-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-caption-primary);
    color: rgba(var(--core-1-rgb), 0.6);
}

.auc-page .auc-date .auc-day {
    display: block;
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.auc-page .auc-date .auc-time {
    display: block;
    font-size: var(--fz-caption);
    font-weight: 600;
    color: var(--core-2-hex);
}

.auc-page .auc-join-btn {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--core-2-hex), var(--accent-1-hex));
    color: #fff !important;
    font-weight: 600;
    font-size: var(--fz-caption);
    border-radius: 999px;
    padding: 8px 18px;
    text-decoration: none;
}

.auc-page .auc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.auc-page .auc-card-head h3 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
}

/* Badge + Run List wrap as ONE right-aligned unit. As loose flex children their
   wrap point depended on the title's length, so the pair landed in a different
   spot on every card. */
.auc-page .auc-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

.auc-page .auc-card-head h3 a {
    color: inherit;
    text-decoration: none;
}

.auc-page .auc-card-head h3 a:hover {
    color: var(--core-3-hex);
}

.auc-page .auc-status {
    font-size: var(--fz-caption);
    font-weight: 600;
    border-radius: 999px;
    padding: 5px 14px;
}

.auc-page .auc-status--live {
    background: rgba(var(--accent-1-rgb), 0.1);
    color: var(--accent-1-hex);
}

.auc-page .auc-status--offers {
    background: rgba(var(--support-1-rgb), 0.15);
    color: #067a4b;
}

/* thumbnail strip: legacy slick classes preserved, sizing here.
   The card body is a grid child: without min-width:0 its min-width:auto
   default lets the slick track's intrinsic width blow the card (and the
   whole page) out horizontally. The overflow clamp contains anything slick
   measures wrong, and height:auto + aspect-ratio replace the legacy fixed
   100px slide height so photos aren't center-cropped to slivers. */
.auc-page .auc-card-body {
    min-width: 0;
}

.auc-page .auction_list_carousel {
    max-width: 100%;
    overflow: hidden;
}

.auc-page .auction_list_carousel .slick-slide {
    height: auto;
}

/* The slide's box is the ANCHOR, not the image. slick lazy-loads the strip, so
   an off-screen slide's img has no src yet; the browser then lays out its long
   alt text, and that text — not any photo — set the whole flex track's height
   (~240px tall letterboxed slides on any card with more cars than
   slidesToShow). A 3:2 box on the anchor keeps every slide the same height
   regardless of image load state. */
.auc-page .calendar__event-featured__item a {
    display: block;
    height: auto;
    aspect-ratio: 480 / 320;
    overflow: hidden;
    border-radius: 0.6rem;
    background: #f2f2f2;
}

.auc-page .calendar__event-featured__item img {
    display: block;
    border-radius: 0.6rem;
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 320;
    object-fit: contain;
    background: #f2f2f2;
}

/* ---------- Legal / fine print ---------- */
.auc-page .auc-legal {
    max-width: 780px;
    margin: 8px auto 0;
    font-size: var(--fz-caption);
    color: rgba(var(--core-1-rgb), 0.6);
}

.auc-page .auc-legal summary {
    cursor: pointer;
    font-weight: 600;
}

.auc-page .auc-legal p {
    margin: 10px 0 0;
    line-height: 1.55;
}

/* ---------- Empty state ---------- */
.auc-page .auc-empty {
    text-align: center;
    background: var(--light-bg-hex);
    border-radius: 1.25rem;
    padding: 48px 24px;
    margin: 24px 0;
}

.auc-page .auc-empty h2 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h3);
    margin: 0 0 10px;
}

.auc-page .auc-empty p {
    max-width: 54ch;
    margin: 0 auto 20px;
    color: rgba(var(--core-1-rgb), 0.75);
}

/* ---------- SEO content block ---------- */
.auc-page .auc-info {
    background: var(--light-bg-hex);
    padding: 52px 0;
}

.auc-page .auc-info h2 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h2);
    text-align: center;
    margin: 0 0 8px;
    text-wrap: balance;
}

.auc-page .auc-info .auc-info-sub {
    text-align: center;
    color: rgba(var(--core-1-rgb), 0.7);
    max-width: 62ch;
    margin: 0 auto 34px;
}

.auc-page .auc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.auc-page .auc-info-card {
    background: var(--canvas-base-hex);
    border-radius: 1rem;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.auc-page .auc-info-card h3 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.auc-page .auc-info-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(var(--core-1-rgb), 0.78);
}

.auc-page .auc-info-card a {
    font-weight: 600;
    color: var(--core-3-hex);
    text-decoration: none;
}

.auc-page .auc-info-card a:hover {
    text-decoration: underline;
}

/* ---------- Mini FAQ ---------- */
.auc-page .auc-faq {
    padding: 48px 0 56px;
}

.auc-page .auc-faq h2 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: var(--fz-h2);
    text-align: center;
    margin: 0 0 26px;
    text-wrap: balance;
}

.auc-page .auc-faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.auc-page .auc-faq-item {
    border-bottom: 1px solid var(--ui-gray-hex);
}

.auc-page .auc-faq-item summary {
    cursor: pointer;
    padding: 16px 6px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.auc-page .auc-faq-item summary::-webkit-details-marker {
    display: none;
}

.auc-page .auc-faq-item summary:focus-visible {
    outline: 3px solid var(--core-3-hex);
    outline-offset: 2px;
}

.auc-page .auc-faq-item h3 {
    font-family: var(--ff-primary);
    font-weight: 600;
    font-size: 1.02rem;
    margin: 0;
}

.auc-page .auc-faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--core-2-hex);
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

.auc-page .auc-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.auc-page .auc-faq-item p {
    padding: 0 6px 18px;
    margin: 0;
    line-height: 1.6;
    color: rgba(var(--core-1-rgb), 0.8);
    max-width: 68ch;
}

/* ---------- Sticky mobile CTA ---------- */
.auc-page .auc-sticky-cta {
    display: none;
}

@media (max-width: 767px) {
    .auc-page .auc-sticky-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: var(--dark-bg-hex);
        color: #fff;
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: 0 -4px 16px rgba(12, 16, 28, 0.25);
    }

    .auc-page .auc-sticky-cta .auc-sticky-label {
        font-size: var(--fz-caption);
        line-height: 1.3;
    }

    .auc-page .auc-sticky-cta output {
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        color: var(--support-1-hex);
    }

    .auc-page {
        padding-bottom: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auc-page .auc-live-dot {
        animation: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .auc-page .auc-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auc-page .auc-hero h1 {
        font-size: var(--fz-h1-mobile);
    }
    .auc-page .auc-card {
        grid-template-columns: 1fr;
    }
    .auc-page .auc-date {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 10px;
        padding: 12px;
    }
}


/* ---------- v2 additions: guarantee pill, info icons ---------- */

.auc-page .auc-guarantee-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(118deg, rgba(3, 255, 136, 0.14), rgba(0, 213, 254, 0.14));
    border: 1.5px solid rgba(3, 200, 110, 0.5);
    color: #065f3c;
    font-weight: 600;
    border-radius: 999px;
    padding: 9px 22px;
    margin-bottom: 20px;
}

.auc-page .auc-guarantee-pill svg {
    width: 20px;
    height: 20px;
}

.auc-page .auc-info-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.auc-page .auc-info-icon svg {
    width: 22px;
    height: 22px;
}

.auc-page .auc-ic-orange { background: rgba(var(--core-2-rgb), 0.12); color: var(--core-2-hex); }
.auc-page .auc-ic-blue   { background: rgba(var(--core-3-rgb), 0.12); color: var(--core-3-hex); }
.auc-page .auc-ic-green  { background: rgba(3, 200, 110, 0.12); color: #067a4b; }
