/* =============================================
   PS_AUCTION - Estilos del módulo de subastas
   ============================================= */

/* ------- Widget del producto ------- */
.ps-auction-widget {
  border: 2px solid #f39c12;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  background: linear-gradient(135deg, #fff9f0, #fff);
}

.auction-badge {
  background: #f39c12;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auction-widget-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auction-widget-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
}

.auction-widget-countdown {
  font-size: 1.2rem;
  font-weight: 700;
}

.auction-widget-btn {
  font-weight: 600;
  font-size: 1rem;
}

/* ------- Página de detalle ------- */
.ps-auction-detail {
  padding: 24px 0;
}

.auction-main-img {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.auction-product-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auction-status-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

/* Cuenta atrás */
.auction-countdown-wrapper {
  text-align: center;
  padding: 12px 0;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.countdown-block {
  background: #2c3e50;
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  min-width: 56px;
  text-align: center;
}

.countdown-block span {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.countdown-block small {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.countdown-block.urgent {
  background: #e74c3c;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Precios */
.auction-price-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
}

.auction-price-value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Formulario de puja */
.bid-input-group .form-control-lg {
  font-size: 1.2rem;
  font-weight: 600;
}

.bid-input-group .btn-lg {
  font-size: 1rem;
  font-weight: 600;
}

/* Historial de pujas */
.auction-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.bid-history-list .list-group-item {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.bidder-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #3498db;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 8px;
}

.bidder-name {
  display: flex;
  align-items: center;
}

/* ------- Listado de subastas ------- */
.auction-list-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.auction-card {
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

.auction-list-img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.auction-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
}

/* Feedback visual al pujar */
.bid-success-flash {
  animation: flash-green 0.6s ease;
}

@keyframes flash-green {
  0% { background: #d4edda; }
  100% { background: transparent; }
}
