/**
 * LSMR Component Styles
 * Modern, clean design matching Polymarket aesthetic
 */

/* ============================================
   LSMR Market Card
   ============================================ */

.lsmr-market-card {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.4), rgba(30, 41, 59, 0.6));  /* slate-700 to slate-800 */
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.lsmr-market-card:hover {
  border-color: rgba(154, 255, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(154, 255, 0, 0.08);
}

.market-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.market-title {
  font-size: 18px;
  font-weight: 700;
  color: #e6eef8;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.market-category {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 12px;
}

.badge-primary {
  background: rgba(154, 255, 0, 0.1);
  color: #9aff00;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-secondary {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
}

/* Market Context */
.market-context {
  background: rgba(15, 23, 42, 0.5);  /* slate-900 */
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.context-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}

.context-label {
  color: #9ca3af;
  font-weight: 500;
}

.context-value {
  color: #e6eef8;
  font-weight: 600;
}

.context-value.positive {
  color: #22c55e;
}

.context-value.negative {
  color: #ef4444;
}

/* Probability Bars */
.market-probabilities {
  margin-bottom: 16px;
}

.probability-bar {
  margin-bottom: 12px;
}

.prob-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.outcome-label {
  font-size: 14px;
  font-weight: 600;
  color: #e6eef8;
}

.outcome-prob {
  font-size: 14px;
  font-weight: 700;
  color: #9aff00;
}

.prob-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.6);  /* slate-900 */
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.prob-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9aff00, #7acc00);
  transition: width 0.5s ease;
  border-radius: 4px;
}

.prob-footer {
  display: flex;
  justify-content: flex-end;
}

.decimal-odds {
  font-size: 12px;
  color: #9ca3af;
}

/* Market Actions */
.market-actions {
  display: flex;
  gap: 8px;
}

.market-actions .btn {
  flex: 1;
}

/* ============================================
   LSMR Betting Interface
   ============================================ */

.lsmr-bet-interface {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.4), rgba(31, 41, 55, 0.6));
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}

/* Outcome Selector */
.outcome-selector {
  margin-bottom: 24px;
}

.outcome-selector h4 {
  font-size: 16px;
  font-weight: 600;
  color: #e6eef8;
  margin-bottom: 12px;
}

.outcome-buttons {
  display: flex;
  gap: 8px;
}

.outcome-btn {
  flex: 1;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #9ca3af;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.outcome-btn:hover {
  border-color: rgba(154, 255, 0, 0.3);
  color: #e6eef8;
}

.outcome-btn.active {
  background: linear-gradient(90deg, rgba(154, 255, 0, 0.15), rgba(122, 204, 0, 0.15));
  border-color: #9aff00;
  color: #9aff00;
}

/* Current Probabilities */
.current-probabilities {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}

.prob-bar-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.prob-bar-compact:last-child {
  margin-bottom: 0;
}

.prob-label {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  min-width: 60px;
}

.prob-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 3px;
  overflow: hidden;
}

.prob-bar-bg .prob-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9aff00, #7acc00);
  transition: width 0.3s ease;
}

.prob-value {
  font-size: 13px;
  font-weight: 700;
  color: #9aff00;
  min-width: 50px;
  text-align: right;
}

/* Bet Amount Section */
.bet-amount-section {
  margin-bottom: 24px;
}

.bet-amount-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e6eef8;
  margin-bottom: 8px;
}

.amount-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#bet-amount {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e6eef8;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#bet-amount:focus {
  outline: none;
  border-color: #9aff00;
  box-shadow: 0 0 0 3px rgba(154, 255, 0, 0.1);
}

.quick-amounts {
  display: flex;
  gap: 8px;
}

.quick-amount {
  flex: 1;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-amount:hover {
  border-color: rgba(154, 255, 0, 0.3);
  color: #9aff00;
}

/* Quote Display */
.quote-display {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
  min-height: 200px;
}

.quote-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #6b7280;
  font-size: 14px;
}

.quote-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.quote-row span:first-child {
  color: #9ca3af;
}

.quote-value {
  font-weight: 600;
  color: #e6eef8;
}

.quote-value.primary {
  color: #9aff00;
}

.quote-value.success {
  color: #22c55e;
}

.quote-value.warning {
  color: #f59e0b;
}

.quote-value.text-secondary {
  color: #6b7280;
}

.quote-row.highlight {
  padding: 8px;
  background: rgba(154, 255, 0, 0.05);
  border-radius: 6px;
}

.quote-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* Bet Actions */
.bet-actions {
  margin-bottom: 16px;
}

.btn-large {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(90deg, #9aff00, #7acc00);
  color: #041;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #baff33, #9aff00);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(154, 255, 0, 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Info Banner */
.info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.info-icon {
  font-size: 16px;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .lsmr-market-card {
    padding: 16px;
  }

  .market-title {
    font-size: 16px;
  }

  .lsmr-bet-interface {
    padding: 20px;
  }

  .outcome-buttons {
    flex-direction: column;
  }

  .outcome-btn {
    width: 100%;
  }

  .quick-amounts {
    flex-wrap: wrap;
  }

  .quick-amount {
    flex: 1 1 calc(50% - 4px);
  }
}

@media (max-width: 480px) {
  .market-card-header {
    flex-direction: column;
  }

  .market-category {
    margin-left: 0;
    margin-top: 8px;
  }

  .prob-bar-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .prob-label,
  .prob-value {
    min-width: auto;
  }
}
