﻿/* AUCTION CAROUSEL */
.ac-wrapper { margin: 24px 0; }
.ac-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 0 16px; }
.ac-header h2 { color: var(--white); margin: 0; }
.ac-counter { color: var(--grey-light); }
.ac-counter span:first-child { color: var(--gold-primary); font-weight: 700; }

.ac-main { display: flex; align-items: center; justify-content: center; gap: 16px; }

.ac-arrow { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-primary), #BFA033); color: #000; border: none; font-size: 28px; cursor: pointer; flex-shrink: 0; }
.ac-arrow:hover { transform: scale(1.1); box-shadow: 0 4px 20px rgba(212,175,55,0.5); }

.ac-stage { display: flex; align-items: center; gap: 20px; }

.ac-slot { transition: transform 0.3s, opacity 0.3s; }
.ac-slot.ac-side { transform: scale(0.85); opacity: 0.5; cursor: pointer; }
.ac-slot.ac-side:hover { opacity: 0.7; }
.ac-slot.ac-center { transform: scale(1); opacity: 1; z-index: 10; }

.ac-tile { width: 320px; background: linear-gradient(145deg, var(--grey-dark), #0a0a0a); border-radius: 16px; overflow: hidden; border: 2px solid var(--grey-medium); position: relative; }
.ac-slot.ac-center .ac-tile { border-color: var(--gold-primary); box-shadow: 0 10px 40px rgba(212,175,55,0.25); }

.ac-badge { position: absolute; top: 12px; left: 12px; background: var(--ruby); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; z-index: 5; animation: pulse-badge 2s infinite; }
@keyframes pulse-badge { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }

.ac-img { height: 220px; background: var(--grey-dark); position: relative; overflow: hidden; cursor: pointer; }
.ac-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.ac-img:hover img { transform: scale(1.05); }
.ac-noimg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.ac-zoom-hint { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: var(--gold-primary); padding: 5px 10px; border-radius: 4px; font-size: 12px; opacity: 0; transition: opacity 0.3s; }
.ac-img:hover .ac-zoom-hint { opacity: 1; }

.ac-info { padding: 16px; }
.ac-info h3 { color: var(--white); font-size: 14px; margin: 0 0 6px 0; line-height: 1.4; min-height: 40px; }
.ac-cardnum { color: var(--grey-light); font-size: 12px; margin-bottom: 12px; }

.ac-bidrow { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-medium); }
.ac-lbl { display: block; color: var(--grey-light); font-size: 10px; text-transform: uppercase; margin-bottom: 4px; }
.ac-price { color: var(--gold-primary); font-size: 20px; font-weight: 700; }
.ac-time { color: var(--white); font-size: 16px; font-weight: 600; font-family: monospace; }
.ac-time.ended { color: var(--ruby); }

.ac-winner { background: rgba(16,185,129,0.15); border: 1px solid var(--emerald); border-radius: 8px; padding: 12px; text-align: center; margin-bottom: 10px; }
.ac-winner-lbl { color: var(--emerald); font-size: 12px; font-weight: 600; }
.ac-winner-amt { color: var(--white); font-size: 22px; font-weight: 700; }
.ac-winner-name { color: var(--gold-primary); font-size: 12px; margin-top: 4px; }

.ac-yourbid { background: rgba(212,175,55,0.15); border: 1px solid var(--gold-primary); border-radius: 8px; padding: 12px; text-align: center; }
.ac-yourbid-amt { display: block; color: var(--white); font-size: 22px; font-weight: 700; }
.ac-bidok { display: block; color: var(--emerald); font-size: 11px; margin-top: 4px; }

.ac-form { display: flex; flex-direction: column; gap: 10px; }
.ac-field label { display: block; color: var(--grey-light); font-size: 11px; margin-bottom: 4px; }
.ac-input { display: flex; align-items: center; background: var(--grey-medium); border: 1px solid var(--grey-medium); border-radius: 6px; padding: 0 10px; }
.ac-input span { color: var(--grey-light); margin-right: 4px; }
.ac-input input { flex: 1; background: transparent; border: none; color: var(--white); font-size: 16px; padding: 10px 0; width: 100%; }
.ac-input input:focus { outline: none; }
.ac-input:focus-within { border-color: var(--gold-primary); }

.ac-bidbtn { background: linear-gradient(135deg, var(--gold-primary), #BFA033); color: #000; border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.ac-bidbtn:hover { transform: translateY(-2px); }
.ac-warn { color: var(--gold-primary); font-size: 11px; text-align: center; background: rgba(212,175,55,0.1); padding: 8px; border-radius: 6px; }
.ac-nobid { color: var(--grey-light); font-size: 12px; text-align: center; padding: 16px; background: var(--grey-medium); border-radius: 8px; }

/* IMAGE VIEWER - FULLSCREEN IMMERSIVE */
#ac-viewer { position: fixed; inset: 0; z-index: 10000; }
.acv-bg { position: absolute; inset: 0; background: #000; }
.acv-x { position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: var(--white); font-size: 32px; cursor: pointer; z-index: 100; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.acv-x:hover { background: var(--gold-primary); color: #000; }

.acv-main { position: absolute; top: 0; left: 0; right: 100px; bottom: 80px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.acv-imgwrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; }
.acv-imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.1s; user-select: none; }

/* Vertical thumbnail sidebar */
.acv-sidebar { position: fixed; top: 0; right: 0; bottom: 80px; width: 100px; background: rgba(0,0,0,0.8); border-left: 1px solid var(--grey-medium); display: flex; flex-direction: column; padding: 80px 10px 20px 10px; }
.acv-thumbs { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; align-items: center; }
.acv-th { width: 75px; height: 75px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.5; transition: all 0.2s; flex-shrink: 0; }
.acv-th.active, .acv-th:hover { border-color: var(--gold-primary); opacity: 1; box-shadow: 0 0 10px rgba(212,175,55,0.5); }
.acv-nav { text-align: center; padding-top: 10px; border-top: 1px solid var(--grey-medium); margin-top: 10px; color: var(--gold-primary); font-size: 14px; font-weight: 600; }

/* Bottom controls bar */
.acv-controls { position: fixed; bottom: 0; left: 0; right: 0; height: 80px; background: rgba(0,0,0,0.9); border-top: 1px solid var(--grey-medium); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.acv-title { color: var(--gold-primary); font-weight: 600; font-size: 16px; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acv-zoom { display: flex; align-items: center; gap: 10px; }
.acv-zoom button { background: var(--grey-medium); color: var(--white); border: 1px solid var(--grey-light); padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 16px; transition: all 0.2s; }
.acv-zoom button:hover { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }
#acv-pct { color: var(--gold-primary); font-weight: 700; font-size: 16px; min-width: 60px; text-align: center; }

/* RESPONSIVE - TABLET */
@media (max-width: 900px) {
    .ac-stage { gap: 12px; }
    .ac-tile { width: 280px; }
    .ac-slot.ac-side { transform: scale(0.75); }
    
    /* Viewer adjustments */
    .acv-sidebar { width: 90px; padding: 70px 8px 15px 8px; }
    .acv-th { width: 65px; height: 65px; }
    .acv-main { right: 90px; }
    .acv-controls { padding: 0 20px; }
    .acv-title { font-size: 14px; max-width: 40%; }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 700px) {
    .ac-wrapper { padding: 0 10px; }
    .ac-slot.ac-side { display: none; }
    .ac-tile { width: calc(100vw - 120px); max-width: 320px; }
    .ac-arrow { width: 40px; height: 40px; font-size: 22px; }
    .ac-img { height: 180px; }
    
    /* Viewer - thumbnail strip moves to bottom */
    .acv-main { right: 0; bottom: 160px; padding: 10px; }
    .acv-sidebar { top: auto; bottom: 80px; left: 0; right: 0; width: 100%; height: 80px; border-left: none; border-top: 1px solid var(--grey-medium); flex-direction: row; padding: 10px 15px; }
    .acv-thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 8px; }
    .acv-th { width: 55px; height: 55px; }
    .acv-nav { border-top: none; border-left: 1px solid var(--grey-medium); margin-top: 0; margin-left: 10px; padding-top: 0; padding-left: 10px; display: flex; align-items: center; }
    
    .acv-x { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 28px; }
    .acv-controls { height: 70px; padding: 0 15px; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .acv-title { max-width: 100%; text-align: center; font-size: 13px; order: -1; width: 100%; margin-bottom: 5px; }
    .acv-zoom { gap: 6px; }
    .acv-zoom button { padding: 8px 12px; font-size: 14px; }
    #acv-pct { font-size: 14px; min-width: 50px; }
}

/* RESPONSIVE - SMALL MOBILE */
@media (max-width: 400px) {
    .ac-tile { width: calc(100vw - 100px); }
    .ac-arrow { width: 35px; height: 35px; font-size: 20px; }
    .ac-main { gap: 8px; }
    
    .acv-th { width: 45px; height: 45px; }
    .acv-zoom button { padding: 6px 10px; }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .ac-arrow { width: 50px; height: 50px; }
    .ac-zoom-hint { display: none; }
    .acv-th { width: 60px; height: 60px; }
    .acv-zoom button { padding: 12px 18px; min-height: 44px; }
    .acv-x { width: 50px; height: 50px; }
}

.ac-winner-id { color: var(--grey-light); font-size: 10px; }