/**
 * 🏗️ Build Confirmation Modal Styles - New Design
 */

/* ========== Modal Overlay ========== */
.build-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.build-confirm-overlay.show {
  display: flex;
}

/* ========== Modal Container ========== */
.build-confirm-modal {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ========== Title ========== */
.confirm-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========== Car Preview Card ========== */
.car-preview-card {
  background: linear-gradient(180deg, rgba(30, 40, 50, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.car-preview-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ========== Car Info Section ========== */
.car-info-section {
  margin-bottom: 20px;
}

.car-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.car-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item {
  font-size: 0.9rem;
  color: #999;
}

.meta-item span {
  color: #fff;
}

/* ========== Cost Section ========== */
.cost-section {
  margin-bottom: 24px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.cost-row.after-balance {
  border-top: 1px solid #333;
  margin-top: 8px;
  padding-top: 16px;
}

.cost-label {
  font-size: 0.9rem;
  color: #999;
}

.cost-value {
  font-size: 0.9rem;
  color: #FFD700;
}

/* ========== Insufficient Warning ========== */
.insufficient-warning {
  color: #ff6b6b;
  font-size: 0.9rem;
  padding: 12px 0;
}

/* ========== Modal Actions ========== */
.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.btn-primary:hover {
  background: rgba(255, 215, 0, 0.1);
}

.btn-primary.btn-buy {
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.btn-secondary {
  background: #333;
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background: #444;
}

/* ========== Advance Button ========== */
.modal-actions-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.build-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.build-options .btn-primary,
.build-options .btn-advance {
  width: 100%;
  box-sizing: border-box;
}

.btn-advance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
}

.btn-advance:hover {
  background: rgba(255, 215, 0, 0.1);
}

.btn-advance .advance-label {
  font-weight: 700;
}

.btn-advance .advance-cost {
  font-size: 0.85rem;
  opacity: 0.9;
}

.btn-advance.btn-disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
}

/* ========== 响应式 ========== */
@media (max-width: 400px) {
  .build-confirm-modal {
    padding: 20px;
  }
  
  .confirm-title {
    font-size: 1.4rem;
  }
  
  .car-preview-image {
    height: 140px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
