/* @section:watchlist - Watchlist Hunt Feature */

/* Watchlist Page Header - Override ghost button styles */
#page-watchlist .page-header .header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

#page-watchlist .page-header .header-actions button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  width: auto;
  height: auto;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

#page-watchlist .page-header .header-actions button:hover {
  background: #e2e8f0;
}

#page-watchlist .page-header .header-actions .btn-hunt {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  border: none;
  color: #fff;
}

#page-watchlist .page-header .header-actions .btn-hunt:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

#page-watchlist .page-header .header-actions .btn-primary {
  background: #818cf8;
  border: none;
  color: #fff;
}

#page-watchlist .page-header .header-actions .btn-primary:hover {
  background: #6366f1;
}

/* Hunt Button */
.btn-hunt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-hunt:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.btn-hunt:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hunt-icon {
  font-size: 14px;
}

/* Hunt Results Section */
.hunt-results-section {
  background: #1e293b;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.hunt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
}

.hunt-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.hunt-badge {
  font-size: 16px;
}

.hunt-status {
  color: #818cf8;
  font-size: 11px;
  font-weight: 500;
}

/* Hunt AI Summary */
.hunt-ai-summary {
  padding: 16px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.hunt-ai-loading {
  color: #94a3b8;
  font-style: italic;
  font-size: 12px;
}

.hunt-ai-content {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.hunt-ai-error {
  color: #f87171;
  font-size: 12px;
}

/* Hunt Grid */
.hunt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
}

.hunt-card {
  background: #334155;
  border-radius: 8px;
  padding: 14px;
  border-left: 3px solid #64748b;
}

.hunt-card.hot {
  border-left-color: #22c55e;
  background: linear-gradient(135deg, #334155 0%, #1a3a2f 100%);
}

.hunt-card.warm {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #334155 0%, #3a3520 100%);
}

.hunt-card.cold {
  border-left-color: #94a3b8;
}

.hunt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hunt-card-ticker {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hunt-card-score {
  background: #0f172a;
  color: #22c55e;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.hunt-card.cold .hunt-card-score {
  color: #94a3b8;
}

.hunt-card.warm .hunt-card-score {
  color: #f59e0b;
}

.hunt-card-price {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hunt-card-price .positive { color: #22c55e; margin-left: 6px; font-size: 12px; }
.hunt-card-price .negative { color: #ef4444; margin-left: 6px; font-size: 12px; }

.hunt-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.hunt-metric {
  background: #0f172a;
  padding: 6px 8px;
  border-radius: 4px;
}

.hunt-metric-label {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hunt-metric-value {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.hunt-metric-value.high { color: #22c55e; }
.hunt-metric-value.bearish { color: #f87171; }
.hunt-metric-value.bullish { color: #4ade80; }
.hunt-metric-value.low { color: #4ade80; font-weight: 700; }

.hunt-card-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #0f172a;
  border-radius: 4px;
  margin-bottom: 8px;
}

.flow-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.flow-label.bearish { color: #f87171; }
.flow-label.bullish { color: #4ade80; }

.flow-detail {
  color: #64748b;
  font-size: 10px;
}

/* Unusual Activity Section */
.hunt-unusual {
  background: linear-gradient(135deg, #0f172a 0%, #1e1a3a 100%);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-left: 3px solid #f59e0b;
}

.unusual-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.unusual-badge.bearish {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.unusual-badge.bullish {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.unusual-detail {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.unusual-vol {
  color: #94a3b8;
  font-weight: 400;
  margin-left: 6px;
}

.unusual-reason {
  color: #f59e0b;
  font-size: 10px;
  margin-top: 2px;
}

.hunt-more-unusual {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.mini-trade {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #0f172a;
  color: #94a3b8;
}

.mini-trade.bearish {
  border-left: 2px solid #ef4444;
  color: #f87171;
}

.mini-trade.bullish {
  border-left: 2px solid #22c55e;
  color: #4ade80;
}

.hunt-card-mp {
  color: #f59e0b;
  font-size: 10px;
  padding: 6px 8px;
  background: #0f172a;
  border-radius: 4px;
  margin-bottom: 10px;
}

.hunt-card-setup {
  margin: 6px 0;
  text-align: center;
}

.setup-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #334155;
  color: #94a3b8;
}

.setup-badge.bearish {
  background: #7f1d1d;
  color: #fca5a5;
}

.setup-badge.bullish {
  background: #14532d;
  color: #86efac;
}

.hunt-card-actions {
  display: flex;
  gap: 8px;
}

.hunt-card-actions .btn-sm {
  flex: 1;
  background: #475569;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.hunt-card-actions .btn-sm:hover {
  background: #64748b;
}

/* Hunt Quick Stats */
.hunt-quick-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hunt-stat {
  flex: 1;
  min-width: 100px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.hunt-stat-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hunt-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.hunt-stat-value.hot { color: #22c55e; }
.hunt-stat-value.high { color: #22c55e; }
.hunt-stat-value.bearish { color: #ef4444; }

/* Watchlist Compact Table */
.watchlist-compact {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.watchlist-table {
  width: 100%;
}

.watchlist-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.6fr 0.6fr 0.6fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.watchlist-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.6fr 0.6fr 0.6fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.watchlist-row:hover {
  background: #f8fafc;
}

.watchlist-row:last-child {
  border-bottom: none;
}

.watchlist-row.hot {
  background: linear-gradient(90deg, #f0fdf4 0%, #fff 50%);
  border-left: 3px solid #22c55e;
}

.watchlist-row.warm {
  background: linear-gradient(90deg, #fefce8 0%, #fff 50%);
  border-left: 3px solid #f59e0b;
}

.col-ticker {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.col-ticker strong {
  font-size: 13px;
  color: #1e293b;
}

.ticker-note {
  color: #94a3b8;
  font-size: 10px;
}

.col-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-val {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.price-chg {
  font-size: 10px;
}

.price-chg.positive { color: #22c55e; }
.price-chg.negative { color: #ef4444; }

.col-metrics {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.col-metrics.high { color: #22c55e; font-weight: 600; }
.col-metrics.low { color: #ef4444; }
.col-metrics.bearish { color: #ef4444; font-weight: 600; }
.col-metrics.bullish { color: #22c55e; }

.col-score {
  text-align: center;
}

.score-badge {
  display: inline-block;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.score-badge.hot {
  background: #22c55e;
  color: #fff;
}

.score-badge.warm {
  background: #f59e0b;
  color: #fff;
}

.col-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.col-actions .btn-icon {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.col-actions .btn-icon:hover {
  background: #e2e8f0;
}

.col-actions .btn-icon.btn-danger:hover {
  background: #fecaca;
  color: #dc2626;
}

/* Hunt Legend */
.hunt-legend {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
}

.legend-title {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #475569;
}

.legend-items b {
  color: #1e293b;
}
