/* YC Tracker v2 — Jarvis-level dark UI */

:root {
  --dark-bg: #0a0e1a;
  --dark-card: rgba(15, 20, 35, 0.8);
  --dark-card-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 12px;
  --orange: #f97316;
  --orange-glow: rgba(249, 115, 22, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(59, 130, 246, 0.05), transparent);
  background-attachment: fixed;
}

.bg-dark { background: var(--dark-bg); }

/* Glass morphism */
.glass {
  background: rgba(15, 20, 35, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.glass-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Company cards */
.company-card {
  transition: all 0.2s ease;
}

.company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(249, 115, 22, 0.1);
}

/* Batch tabs */
.batch-tab {
  background: rgba(255, 255, 255, 0.03);
  color: #6b7280;
  border: 1px solid transparent;
}

.batch-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #d1d5db;
}

.batch-tab.active {
  background: var(--orange-glow);
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Score badges */
.score-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  min-width: 2rem;
  text-align: center;
}

.score-high {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.score-mid {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.score-low {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Score bars */
.score-bar-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.score-bar-team { background: #60a5fa; }
.score-bar-market { background: #34d399; }
.score-bar-product { background: #a78bfa; }
.score-bar-traction { background: #fbbf24; }

/* Tags */
.tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  white-space: nowrap;
}

/* Line clamp */
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Search input */
.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange-glow);
}

/* Select styling */
select {
  background-color: rgba(15, 20, 35, 0.8);
}

select option {
  background: #1a1f2e;
  color: #d1d5db;
}

/* Nav links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Radar Chart */
.radar-chart {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.radar-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.radar-svg {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}

.radar-polygon {
  fill: rgba(249, 115, 22, 0.15);
  stroke: var(--orange);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.radar-shape {
  position: absolute;
  inset: 0;
}

.radar-axis {
  position: absolute;
}

.radar-top {
  top: calc(10px + (1 - var(--value)) * 80px);
  left: 50%;
  transform: translateX(-50%);
}

.radar-right {
  top: 50%;
  right: calc(10px + (1 - var(--value)) * 80px);
  transform: translateY(-50%);
}

.radar-bottom {
  bottom: calc(10px + (1 - var(--value)) * 80px);
  left: 50%;
  transform: translateX(-50%);
}

.radar-left {
  top: 50%;
  left: calc(10px + (1 - var(--value)) * 80px);
  transform: translateY(-50%);
}

.radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}

.radar-label {
  position: absolute;
  font-size: 9px;
  color: #6b7280;
  white-space: nowrap;
}

.radar-top .radar-label { bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; }
.radar-right .radar-label { left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; }
.radar-bottom .radar-label { top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; }
.radar-left .radar-label { right: 100%; top: 50%; transform: translateY(-50%); margin-right: 8px; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
  .radar-chart {
    width: 150px;
    height: 150px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.company-card {
  animation: fadeIn 0.3s ease forwards;
}

.company-card:nth-child(n+4) { animation-delay: 0.05s; }
.company-card:nth-child(n+7) { animation-delay: 0.1s; }
.company-card:nth-child(n+10) { animation-delay: 0.15s; }

/* Sentiment dots */
.bg-green-500 { background-color: #22c55e; }
.bg-red-500 { background-color: #ef4444; }

/* Founder cards */
.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* AI summary accent border */
.border-l-4 { border-left-width: 4px; }
.border-orange-500 { border-color: var(--orange); }

/* No underline on links */
a { text-decoration: none; }
a:hover { text-decoration: none; }
