/* =============================================================================
   Veilingsite — Frontend CSS (mobile-first)
   Palette: Navy #0d1b2a · Amber #f59e0b · Off-white #f8f9fa
   ============================================================================= */

/* ── CSS custom properties ────────────────────────────────────────────────── */
:root {
    --navy:          #0d1b2a;
    --navy-mid:      #162536;
    --navy-light:    #1e3352;
    --amber:         #f59e0b;
    --amber-dark:    #d97706;
    --amber-light:   #fde68a;
    --text-light:    #f8f9fa;
    --text-muted:    #8fa3b1;
    --border-color:  #e2e8f0;
    --radius:        10px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
    --shadow-md:     0 4px 20px rgba(0,0,0,.12);
    --transition:    .18s ease;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
    color: #1a2733;
}

/* ── Colour utilities ─────────────────────────────────────────────────────── */

.bg-navy    { background-color: var(--navy) !important; }
.bg-navy-mid{ background-color: var(--navy-mid) !important; }
.text-amber { color: var(--amber) !important; }

.btn-amber {
    background-color: var(--amber);
    border-color: var(--amber);
    color: #1a1a1a;
    font-weight: 600;
}
.btn-amber:hover, .btn-amber:focus {
    background-color: var(--amber-dark);
    border-color: var(--amber-dark);
    color: #1a1a1a;
}
.btn-outline-amber {
    border-color: var(--amber);
    color: var(--amber);
    font-weight: 600;
}
.btn-outline-amber:hover {
    background-color: var(--amber);
    color: #1a1a1a;
}

/* ── Header / Navbar ──────────────────────────────────────────────────────── */

.site-header {
    z-index: 1030;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.navbar-brand span {
    font-size: 1.15rem;
    letter-spacing: -.3px;
}

.navbar .form-control {
    border-radius: 8px 0 0 8px;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
}
.navbar .form-control::placeholder { color: rgba(255,255,255,.5); }
.navbar .form-control:focus {
    background: rgba(255,255,255,.2);
    color: #fff;
    box-shadow: none;
}
.navbar .btn-amber { border-radius: 0 8px 8px 0; }

/* ── Google Translate widget in navbar ───────────────────────────────────── */
#google_translate_element .goog-te-gadget-simple {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 2px 8px;
}
#google_translate_element .goog-te-gadget-simple span,
#google_translate_element .goog-te-gadget-simple a {
    color: #fff !important;
    font-size: .85rem;
    text-decoration: none;
}
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    border-left: none;
}
/* ── Google Translate bar (active translation) ───────────────────────────── */
/* Outer wrapper that holds the iframe bar */
.skiptranslate {
    background: var(--navy-mid) !important;
    border-bottom: 1px solid var(--navy-light) !important;
}
/* The iframe bar itself — match the navy background */
.goog-te-banner-frame {
    background: var(--navy-mid) !important;
    border: none !important;
}
/* When translation is active, Google pushes body down; move sticky header below the bar */
body.translated-ltr .site-header,
body.translated-rtl .site-header {
    top: 40px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    background:
        /*linear-gradient(135deg, rgba(10, 25, 60, 0.82) 0%, rgba(30, 58, 120, 0.78) 100%),*/
        url('/assets/img/hero2.jpg') top center / cover no-repeat;
    color: #fff;
    padding: 3rem 1rem 4rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero .lead {
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    color: rgba(255,255,255,.8);
}

.hero-search {
    padding-top:160px
}

.hero-search .form-control {
    height: 54px;
    font-size: 1rem;
    border-radius: 12px 0 0 12px;
    border: none;
}

.hero-search .btn {
    height: 54px;
    padding: 0 1.5rem;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
}

/* ── Section titles ───────────────────────────────────────────────────────── */

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--amber);
    border-radius: 2px;
    margin-top: .4rem;
}

/* ── Lot card ─────────────────────────────────────────────────────────────── */

.lot-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.lot-card a { text-decoration: none; color: inherit; }

.lot-card__img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf0f5;
    position: relative;
}

.lot-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.lot-card:hover .lot-card__img-wrap img {
    transform: scale(1.04);
}

.lot-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bec5;
    font-size: 3rem;
}

.lot-card__status {
    position: absolute;
    top: .6rem;
    left: .6rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2em .6em;
    border-radius: 20px;
}

.lot-card__body {
    padding: .85rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.lot-card__title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lot-card__category {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lot-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: .5rem;
}

.lot-card__price-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lot-card__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.lot-card__timer {
    font-size: .75rem;
    color: #dc3545;
    font-weight: 600;
}

.lot-card__footer {
    padding: .6rem 1rem;
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lot-card__bid-count {
    font-size: .78rem;
    color: var(--text-muted);
}

/* ── Lot detail page ──────────────────────────────────────────────────────── */

.lot-detail__img {
    border-radius: var(--radius);
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: zoom-in;
    background: #f8f9fa;
}

/* Carousel thumbnail strip */
.lot-thumb { cursor: pointer; }
.lot-thumb.active img,
.lot-thumb.active div { opacity: 1 !important; outline: 2px solid var(--amber); outline-offset: 2px; }
.lot-thumb img,
.lot-thumb div { transition: opacity .15s; }
.lot-thumb:hover img,
.lot-thumb:hover div { opacity: 1 !important; }

.lot-detail__sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.lot-detail__current-bid {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.lot-detail__bid-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.lot-detail__countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    font-variant-numeric: tabular-nums;
}

.bid-form .form-control {
    font-size: 1.2rem;
    height: 52px;
    font-weight: 600;
}

.bid-form .btn {
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
}

/* ── Lot description section ──────────────────────────────────────────────── */

.lot-detail__img + h1 + .badge + .text-muted,
.lot-detail__img + h1 + .text-muted,
.col-12.col-lg-7 .mt-3 .text-muted {
    font-size: 16px !important;
}

.col-12.col-lg-7 .mt-3 h5 {
    font-size: 16px !important;
}

/* ── Category pill filter ─────────────────────────────────────────────────── */

.filter-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pills .pill {
    white-space: nowrap;
    padding: .35rem .9rem;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: #4a5568;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.filter-pills .pill:hover,
.filter-pills .pill.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ── Auth cards ───────────────────────────────────────────────────────────── */

.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    overflow: hidden;
}

.auth-card__header {
    background: var(--navy);
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.auth-card__body {
    padding: 2rem;
}

/* ── Category chips (hero) ────────────────────────────────────────────────── */

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .75rem .5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    transition: background var(--transition), transform var(--transition);
}

.cat-chip:hover {
    background: rgba(245,158,11,.2);
    border-color: var(--amber);
    color: var(--amber-light);
    transform: translateY(-2px);
}

.cat-chip i { font-size: 1.4rem; }

/* ── Stats bar ────────────────────────────────────────────────────────────── */

.stats-bar {
    background: var(--navy-mid);
    color: rgba(255,255,255,.85);
    padding: .9rem 0;
    font-size: .85rem;
}

.stats-bar .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
}

.stats-bar .stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--amber);
}

/* ── Testimonial / info cards ─────────────────────────────────────────────── */

.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.info-card .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(245,158,11,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--amber-dark);
    margin-bottom: 1rem;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.pagination .page-link {
    color: var(--navy);
    border-radius: 8px !important;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--navy);
    border-color: var(--navy);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--navy);
    margin-top: auto;
}

.footer-main { border-bottom: 1px solid rgba(255,255,255,.08); }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .88rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom { background: rgba(0,0,0,.2); }

/* ── Utility ──────────────────────────────────────────────────────────────── */

.rounded-xl { border-radius: var(--radius) !important; }
.shadow-sm-custom { box-shadow: var(--shadow-sm); }
.text-navy { color: var(--navy) !important; }

/* ── Responsive tweaks ────────────────────────────────────────────────────── */

@media (min-width: 1900px) {
    .hero-search {
        padding-top:240px
    }
}

/* ── Auto-bid panel ───────────────────────────────────────────────────────── */

.auto-bid-panel {
    transition: none;
}

.auto-bid-panel .card {
    border-width: 1.5px !important;
    background: #f0f9ff;
}

.auto-bid-panel .card-body {
    border-radius: var(--radius);
}

#auto-bid-toggle {
    font-size: .85rem;
    color: #0d6efd;
    border-color: #0d6efd;
    border-radius: var(--radius) !important;
}

#auto-bid-toggle:hover {
    background: #0d6efd;
    color: #fff;
}

.auto-bid-panel .btn-info {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.auto-bid-panel .btn-info:hover {
    background: #0284c7;
    border-color: #0284c7;
}

@media (max-width: 575.98px) {
    .hero { padding: 2rem .75rem 3rem;background:
        /*linear-gradient(135deg, rgba(10, 25, 60, 0.82) 0%, rgba(30, 58, 120, 0.78) 100%),*/
        url('/assets/img/hero-mobile.jpg') top center / cover no-repeat;}
    .hero-search {
        padding-top:100px
    }
    .auth-card__body { padding: 1.5rem; }
}
