/* auction.css - Стили для страницы аукциона */

.auction-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Главная карточка аукциона */
.auction-main-card {
    background: var(--gradient-dark);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.auction-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

/* Таймер аукциона */
.auction-timer {
    text-align: center;
    margin-bottom: 2rem;
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.timer-normal { color: var(--success-color); }
.timer-warning { color: var(--warning-color); animation: pulse 1s infinite; }
.timer-critical { color: var(--error-color); animation: pulse 0.5s infinite; }

/* Банк аукциона */
.auction-bank {
    text-align: center;
    margin-bottom: 2rem;
}

.bank-label {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.bank-amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Текущая ставка */
.current-bid {
    text-align: center;
    margin-bottom: 2rem;
}

.current-bid-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.current-bid-amount {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Кнопки ставок */
.bid-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bid-button {
    padding: 15px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.bid-button:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.bid-button.bid-success {
    background: var(--success-color);
    border-color: var(--success-color);
    animation: bidSuccess 1s ease;
}

@keyframes bidSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: var(--success-color); }
    100% { transform: scale(1); }
}

/* Поле ввода ставки */
.bid-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bid-input {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.bid-submit {
    padding: 15px 30px;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* История ставок */
.bids-history {
    max-height: 400px;
    overflow-y: auto;
}

.bids-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.bid-item:hover {
    background: rgba(255,255,255,0.1);
}

.bid-item.own-bid {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--primary-color);
}

.bid-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.bid-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.bid-username {
    font-weight: 600;
    color: var(--primary-light);
}

.bid-amount {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
}

.bid-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-bids {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Статистика аукциона */
.auction-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .auction-main-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .bank-amount {
        font-size: 2rem;
    }
    
    .current-bid-amount {
        font-size: 1.5rem;
    }
    
    .bid-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bid-input-group {
        flex-direction: column;
    }
    
    .auction-stats {
        grid-template-columns: 1fr;
    }
    
    .bid-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bid-amount {
        margin-right: 0;
    }
}