/**
 * ✅ Fact Check Confirmation Modal Styles
 * Updated to match build-confirm-modal design
 */

/* ========== Modal Overlay ========== */
.factcheck-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: 10001;
  padding: 20px;
}

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

/* ========== Modal Container ========== */
.factcheck-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 ========== */
.factcheck-confirm-modal .modal-header {
  margin-bottom: 20px;
}

.factcheck-confirm-modal .modal-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== Fact Check Info ========== */
.factcheck-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #999;
  font-size: 13px;
  line-height: 1.4;
}

.info-item .icon {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

.info-item:last-child {
  padding-bottom: 0;
}

.info-highlight {
  color: #FFD700;
  font-weight: 600;
}

/* ========== Cost Section ========== */
.factcheck-confirm-modal .cost-breakdown {
  margin-bottom: 20px;
}

.factcheck-confirm-modal .cost-row,
.factcheck-confirm-modal .balance-row,
.factcheck-confirm-modal .after-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.factcheck-confirm-modal .after-row {
  border-top: 1px solid #333;
  margin-top: 8px;
  padding-top: 16px;
}

.factcheck-confirm-modal .cost-label-large,
.factcheck-confirm-modal .balance-label,
.factcheck-confirm-modal .after-label {
  font-size: 0.9rem;
  color: #999;
}

.factcheck-confirm-modal .cost-value-large,
.factcheck-confirm-modal .balance-value,
.factcheck-confirm-modal .after-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #FFD700;
}

.factcheck-confirm-modal .tire-icon {
  font-size: 14px;
}

.factcheck-confirm-modal .tire-amount {
  font-weight: 600;
}

.factcheck-confirm-modal .tire-amount.warning {
  color: #ff6b6b;
}

.factcheck-confirm-modal .tire-amount.success {
  color: #4CAF50;
}

.factcheck-confirm-modal .usd-amount {
  color: #666;
  font-size: 0.8rem;
}

/* ========== Premium Badge ========== */
.premium-badge {
  display: inline-block;
  background: #FFD700;
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ========== Insufficient Funds ========== */
.insufficient-funds {
  text-align: center;
  padding: 16px;
  margin-bottom: 16px;
}

.insufficient-funds .warning-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.insufficient-funds .warning-title {
  color: #ff6b6b;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.insufficient-funds .warning-message {
  color: #999;
  font-size: 0.85rem;
}

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

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

.factcheck-confirm-modal .btn-cancel {
  background: #333;
  color: #fff;
}

.factcheck-confirm-modal .btn-cancel:hover {
  background: #444;
}

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

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

.factcheck-confirm-modal .btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.factcheck-confirm-modal .btn-buy-tires {
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.factcheck-confirm-modal .btn-buy-tires:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* ========== Build Info ========== */
.build-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.build-info-title {
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.build-info-value {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* ========== Hide Close Button ========== */
.factcheck-confirm-modal .close-btn {
  display: none;
}

/* ========== Responsive ========== */
@media (max-width: 400px) {
  .factcheck-confirm-modal {
    padding: 20px;
  }
  
  .factcheck-confirm-modal .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .factcheck-confirm-modal .modal-actions {
    flex-direction: column;
  }
  
  .factcheck-confirm-modal .btn-cancel,
  .factcheck-confirm-modal .btn-confirm {
    width: 100%;
  }
}
