/**
 * SA VIP Auctions - Auction Room Styling
 * Cinematic Timer & Bidding Experience
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   TIMER DISPLAY
   ═══════════════════════════════════════════════════════════════════════════════ */

.timer-display {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.timer-display.urgent {
    color: #EF4444 !important;
    text-shadow: 
        0 0 10px rgba(239, 68, 68, 0.5),
        0 0 20px rgba(239, 68, 68, 0.3),
        0 0 30px rgba(239, 68, 68, 0.2);
    animation: timer-pulse 0.5s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Timer container */
.timer-container {
    position: relative;
    padding: 2rem;
    background: 
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem;
}

.timer-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), transparent, rgba(212, 175, 55, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BID BUTTON
   ═══════════════════════════════════════════════════════════════════════════════ */

.bid-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bid-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.bid-button:hover::before {
    left: 100%;
}

.bid-button:active {
    transform: scale(0.98);
}

.bid-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bid-button:disabled::before {
    display: none;
}

/* Casino chip style button */
.bid-button-chip {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
    border: 8px dashed rgba(10, 10, 10, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 5px 15px rgba(255, 255, 255, 0.2),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bid-button-chip:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(212, 175, 55, 0.4),
        inset 0 5px 15px rgba(255, 255, 255, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.bid-button-chip:active {
    transform: translateY(0) rotate(0);
}

.bid-button-chip span {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #0A0A0A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BID FEED
   ═══════════════════════════════════════════════════════════════════════════════ */

.bid-feed {
    max-height: 200px;
    overflow-y: auto;
}

.bid-feed-item {
    animation: bid-slide-in 0.3s ease-out;
}

@keyframes bid-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   EXTENSION NOTIFICATION
   ═══════════════════════════════════════════════════════════════════════════════ */

.extension-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem 4rem;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid #FFD700;
    border-radius: 1rem;
    z-index: 100;
    animation: extension-pop 0.5s ease-out;
}

@keyframes extension-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WINNER OVERLAY
   ═══════════════════════════════════════════════════════════════════════════════ */

#winner-overlay {
    animation: winner-fade-in 0.5s ease-out;
}

@keyframes winner-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#winner-overlay h2 {
    animation: winner-title 1s ease-out;
}

@keyframes winner-title {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Gold rain effect */
.gold-rain {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    animation: gold-fall linear infinite;
}

@keyframes gold-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOT CARD
   ═══════════════════════════════════════════════════════════════════════════════ */

.lot-card {
    transition: all 0.3s ease;
}

.lot-card:hover {
    transform: translateY(-5px);
}

.lot-card.active-bidding {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

/* Price update animation */
.current-price {
    transition: all 0.3s ease;
}

.current-price.updated {
    animation: price-bump 0.3s ease-out;
}

@keyframes price-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #22C55E; }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIVE INDICATOR
   ═══════════════════════════════════════════════════════════════════════════════ */

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .timer-display {
        font-size: 2rem;
    }
    
    .bid-button-chip {
        width: 80px;
        height: 80px;
        border-width: 5px;
    }
    
    .bid-button-chip span {
        font-size: 0.75rem;
    }
}
