/* rv-frontpage-v8.css - High-fidelity styling for the Unified TOP Picks dashboard */

.top-picks-container, .coverage-option-3-wrap {
  --bg: #050811;
  --bg-darker: #020407;
  --card: rgba(15, 23, 42, 0.45);
  --border: rgba(255, 255, 255, 0.05);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --dim: #555c68;
  
  /* HSL Accents */
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --yellow: #f59e0b;
  --yellow-soft: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  
  /* Accent HSL */
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(56, 189, 248, 0.25);
  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.12);
  
  --radius: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stable scrollbar reserve */
html {
  scrollbar-gutter: stable;
}

/* ==========================================================================
   COVERAGE BAR OPTION STYLES (Locked Premium Tagline)
   ========================================================================== */
.coverage-option-3-wrap {
  background: rgba(15, 23, 42, 0.15);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  margin: 1.5rem auto 1.5rem auto;
  max-width: 1200px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   UNIFIED TOP PICKS MAIN WIDGET
   ========================================================================== */
.top-picks-container {
  margin-top: 2rem;
  text-align: left;
  box-sizing: border-box;
}

.tab-bar { 
  display: flex; 
  gap: 0.25rem; 
  margin-bottom: 1.5rem; 
  border-bottom: 2px solid var(--border); 
  padding-bottom: 2px;
}
.tab-btn { 
  padding: .65rem 1.25rem; 
  font-size: .82rem; 
  font-weight: 700; 
  color: var(--muted); 
  cursor: pointer; 
  border: none; 
  background: none; 
  border-bottom: 2px solid transparent; 
  margin-bottom: -4px; 
  transition: var(--transition-smooth); 
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { 
  color: var(--blue); 
  border-bottom: 2px solid var(--blue); 
}
.tab-btn .count { 
  font-size: .68rem; 
  color: var(--dim); 
  margin-left: .35rem; 
  background: rgba(255,255,255,0.04);
  padding: 1px 6px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.tab-btn.active .count { 
  color: var(--blue); 
  background: var(--blue-soft);
  border-color: rgba(56, 189, 248, 0.15);
}

.filter-bar { 
  display: flex; 
  gap: .5rem; 
  align-items: center; 
  margin-bottom: 1.2rem; 
  flex-wrap: wrap; 
  background: rgba(15, 23, 42, 0.2);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}
.filter-bar .sep { color: var(--border); margin: 0 .2rem; }
.filter-chip { 
  padding: .35rem .75rem; 
  border-radius: var(--radius-sm); 
  font-size: .74rem; 
  font-weight: 700; 
  cursor: pointer; 
  border: 1px solid rgba(255, 255, 255, 0.04); 
  background: rgba(255,255,255,0.02); 
  color: var(--muted); 
  transition: var(--transition-smooth); 
}
.filter-chip:hover { 
  border-color: rgba(255, 255, 255, 0.15); 
  color: var(--text); 
  background: rgba(255, 255, 255, 0.04);
}
.filter-chip.active { 
  background: var(--blue-soft); 
  border-color: var(--border-glow); 
  color: var(--blue); 
}

.sort-select { 
  margin-left: auto; 
  padding: .4rem .7rem; 
  border-radius: var(--radius-sm); 
  font-size: .74rem; 
  background: rgba(7, 11, 20, 0.5); 
  border: 1px solid var(--border); 
  color: var(--muted); 
  outline: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.sort-select:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.horizon-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.horizon-tab { 
  flex: 1; 
  padding: .75rem 1rem; 
  text-align: center; 
  border-radius: var(--radius); 
  font-weight: 700; 
  font-size: .82rem; 
  cursor: pointer; 
  border: 1px solid var(--border); 
  background: rgba(15, 23, 42, 0.2); 
  color: var(--dim); 
  transition: var(--transition-smooth); 
  position: relative; 
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.horizon-tab::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--tab-col-glow, transparent) 0%, transparent 18%);
  pointer-events: none;
}
.horizon-tab:hover { border-color: rgba(255, 255, 255, 0.12); color: var(--muted); }
.horizon-tab .hc { font-size: .68rem; color: var(--dim); font-weight: 400; display: block; margin-top: .15rem; }
.horizon-tab.short.active { 
  background: rgba(56, 189, 248, 0.08); 
  border-color: rgba(56, 189, 248, 0.25); 
  color: #38bdf8; 
  --tab-col-glow: rgba(56, 189, 248, 0.15);
}
.horizon-tab.mid.active { 
  background: rgba(167, 139, 250, 0.08); 
  border-color: rgba(167, 139, 250, 0.25); 
  color: #a78bfa; 
  --tab-col-glow: rgba(167, 139, 250, 0.15);
}
.horizon-tab.long.active { 
  background: rgba(16, 185, 129, 0.08); 
  border-color: rgba(16, 185, 129, 0.25); 
  color: var(--green); 
  --tab-col-glow: rgba(16, 185, 129, 0.15);
}
.horizon-tab .count { 
  position: absolute; 
  top: 6px; 
  right: 8px; 
  background: rgba(7, 11, 20, 0.8); 
  border: 1px solid var(--border); 
  font-size: .62rem; 
  padding: 1px 6px; 
  border-radius: 50px; 
  color: var(--muted); 
}
.horizon-tab.active .count {
  border-color: currentColor;
  color: inherit;
}

.buy-list { 
  background: rgba(15, 23, 42, 0.35); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  overflow: hidden; 
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.buy-row { 
  display: grid; 
  grid-template-columns: 130px 1.2fr 85px 80px 110px 85px; 
  align-items: center; 
  padding: .65rem .95rem; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.025); 
  font-size: .8rem; 
  cursor: pointer; 
  transition: var(--transition-smooth); 
  position: relative; 
  animation: fadeIn .3s ease both; 
}
.buy-row:hover { 
  background: rgba(255, 255, 255, 0.04); 
  border-bottom-color: rgba(255,255,255,0.05);
}
.buy-row:last-child { border-bottom: none; }
.buy-row.header { 
  font-size: .68rem; 
  color: var(--dim); 
  text-transform: uppercase; 
  font-weight: 700; 
  cursor: default; 
  padding: .45rem .95rem; 
  border-bottom: 1px solid var(--border); 
  letter-spacing: .06em; 
  background: rgba(7, 11, 20, 0.4);
}
.buy-row.header:hover { background: rgba(7, 11, 20, 0.4); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.row-ticker-wrap { display: flex; align-items: center; gap: 0.55rem; }
.medal {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255,255,255,0.03);
  color: var(--dim);
}
.medal.gold { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.medal.silver { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.35); }
.medal.bronze { background: rgba(217, 119, 6, 0.15); color: #f59e0b; border: 1px solid rgba(217, 119, 6, 0.35); }

.ticker { font-weight: 700; font-size: .85rem; color: #fff; }
.ticker .name { 
  display: block; 
  font-size: .66rem; 
  color: var(--muted); 
  font-weight: 500; 
  margin-top: 1px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  max-width: 90px; 
}
.score-display { display: flex; align-items: center; gap: .5rem; }
.score-pct { font-weight: 800; font-size: .92rem; min-width: 36px; text-align: right; }
.score-bar-wrap { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; transition: width .4s ease; }
.score-bar-fill.high { background: linear-gradient(90deg, var(--green), #34d399); }
.score-bar-fill.mid { background: linear-gradient(90deg, var(--yellow), #fbbf24); }
.score-bar-fill.low { background: linear-gradient(90deg, var(--dim), var(--muted)); }

.trend-sparkline { display: flex; align-items: center; justify-content: center; }

.meta { font-size: .7rem; color: var(--dim); text-align: right; line-height: 1.3; }
.meta .mc-val { font-weight: 600; color: #cbd5e1; }

.verdict-tag { 
  font-size: .66rem; 
  font-weight: 800; 
  padding: .15rem .55rem; 
  border-radius: 5px; 
  text-align: center; 
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.verdict-tag::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
}
.v-buy { background: rgba(16, 185, 129, 0.08); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.v-buy::before { background: #34d399; box-shadow: 0 0 6px #34d399; }
.v-wait { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.v-wait::before { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.v-sell { background: rgba(239, 68, 68, 0.08); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.v-sell::before { background: #f87171; box-shadow: 0 0 6px #f87171; }

.v-armed { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.v-armed::before { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.v-triggered { background: rgba(56, 189, 248, 0.08); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.2); }
.v-triggered::before { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.v-confirmed { background: rgba(16, 185, 129, 0.08); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.v-confirmed::before { background: #34d399; box-shadow: 0 0 6px #34d399; }
.v-failed { background: rgba(239, 68, 68, 0.08); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.v-failed::before { background: #f87171; box-shadow: 0 0 6px #f87171; }

.buy-detail { 
  max-height: 0;
  opacity: 0;
  overflow: hidden; 
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-out;
  background: rgba(0, 0, 0, 0.25); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.01); 
  font-size: .74rem; 
  color: var(--muted); 
}
.buy-detail.open { 
  max-height: 250px;
  opacity: 1;
  padding: .75rem 1.25rem .9rem; 
}
.detail-container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.detail-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.detail-item { 
  padding: .35rem .65rem; 
  background: rgba(255, 255, 255, 0.015); 
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 6px; 
}
.detail-item .dl { font-size: .62rem; color: var(--dim); text-transform: uppercase; font-weight: 700; letter-spacing: 0.03em; }
.detail-item .dv { font-size: .78rem; font-weight: 600; color: var(--text); margin-top: 2px; }

.view-analysis-btn {
  padding: 0.5rem 1rem;
  background: var(--blue-soft);
  border: 1px solid var(--border-glow);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.view-analysis-btn:hover {
  background: var(--blue);
  color: #000;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.show-more { text-align: center; padding: 1rem 0 0; }
.show-more-btn { 
  padding: .5rem 2rem; 
  border-radius: var(--radius-sm); 
  font-size: .76rem; 
  font-weight: 700; 
  cursor: pointer; 
  border: 1px solid var(--border); 
  background: rgba(15, 23, 42, 0.3); 
  color: var(--muted); 
  transition: var(--transition-smooth); 
}
.show-more-btn:hover { 
  border-color: rgba(255, 255, 255, 0.2); 
  color: var(--text); 
  background: rgba(15, 23, 42, 0.5); 
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.empty-state svg {
  width: 32px; height: 32px;
  stroke: var(--dim);
  margin-bottom: 0.5rem;
}

/* Sparkline technical line path styling */
.trend-sparkline svg path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsiveness overrides */
@media (max-width: 768px) {
  .buy-row {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
  .buy-row > :nth-child(4),
  .buy-row > :nth-child(5),
  .buy-row > :nth-child(6) {
    display: none;
  }
  .buy-row.header {
    display: none;
  }
  .horizon-tabs {
    flex-direction: column;
  }
  .coverage-option-3-wrap {
    flex-direction: column;
    padding: 0.85rem;
  }
}
