:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --bg-hover: #22222e;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2a2a3a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-badge {
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Navigation */
.nav {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.nav-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Main */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
}

.section { display: none; animation: fadeIn 0.3s ease; }
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header { margin-bottom: 1.5rem; }
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-desc { color: var(--text-secondary); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.filter-select {
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.filter-search:focus {
  outline: none;
  border-color: var(--accent);
}

.results-count {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Score Badge */
.score-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.score-5 { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 2px solid #10b981; }
.score-4 { background: rgba(52, 211, 153, 0.2); color: #34d399; border: 2px solid #34d399; }
.score-3 { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 2px solid #f59e0b; }
.score-2 { background: rgba(251, 146, 60, 0.2); color: #fb923c; border: 2px solid #fb923c; }
.score-1 { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 2px solid #ef4444; }

/* Card Meta */
.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.meta-label { color: var(--text-muted); }
.meta-value { font-weight: 500; }
.meta-value.positive { color: var(--success); }
.meta-value.warning { color: var(--warning); }
.meta-value.danger { color: var(--danger); }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.tag {
  padding: 0.25rem 0.5rem;
  background: var(--bg-hover);
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-handmade { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-resale { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.badge-trend-up { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-trend-stable { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.badge-trend-down { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Card Tip */
.card-tip {
  margin-top: 0.75rem;
  padding: 0.6rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-tip.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.youtube-link {
  display: block;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 8px;
  color: #ff6b6b;
  text-decoration: none;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.2s;
}

.youtube-link:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.4);
  color: #ff8a8a;
}

/* Season Bar */
.season-bar {
  display: flex;
  gap: 2px;
  margin-top: 0.75rem;
}

.season-month {
  flex: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  position: relative;
}

.season-month.peak {
  background: var(--accent);
}

.season-month::after {
  content: attr(data-month);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Alert Box */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid var(--warning); }
.alert-info { background: rgba(99, 102, 241, 0.1); border: 1px solid #6366f1; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); }

.alert-icon { font-size: 1.25rem; flex-shrink: 0; }
.alert-content h4 { margin-bottom: 0.2rem; font-size: 0.95rem; }
.alert-content p { color: var(--text-secondary); font-size: 0.85rem; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-text { font-size: 1.1rem; }

/* Responsive */
@media (max-width: 768px) {
  .header-content { flex-direction: column; align-items: flex-start; }
  .nav { padding: 0.5rem 1rem; }
  .main { padding: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .filter-select, .filter-search { width: 100%; }
  .card-meta { grid-template-columns: 1fr; }
}

