/* ═══════════════════════════════════════════════
   AI Skill Comparison & Rating — Design System
   Dark mode with glassmorphism, premium accents
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: rgba(20, 20, 50, 0.6);
  --bg-card-hover: rgba(30, 30, 70, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #e8e8f0;
  --text-secondary: #9898b8;
  --text-muted: #6868a0;

  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.3);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.3);
  --accent-indigo: #6366f1;

  --premium-gold: #f59e0b;
  --premium-gold-light: #fbbf24;
  --premium-gold-glow: rgba(245, 158, 11, 0.25);
  --premium-gradient: linear-gradient(135deg, #f59e0b, #d97706, #f59e0b);

  --free-badge: #6366f1;
  --tier-verified: #10b981;
  --tier-community: #6366f1;
  --tier-experimental: #f59e0b;

  --grade-a: #10b981;
  --grade-b: #3b82f6;
  --grade-c: #f59e0b;
  --grade-d: #f97316;
  --grade-f: #ef4444;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-purple-glow);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Shared Utilities ── */
.glass-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Animated Background ── */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.orb-1 { width: 400px; height: 400px; background: var(--accent-purple); top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--accent-blue); bottom: -80px; right: -80px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: var(--accent-indigo); top: 50%; left: 50%; animation-delay: -10s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo span {
  font-size: 1.5rem;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero Section ── */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier-verified);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--premium-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ── Search Bar ── */
.search-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.search-bar {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-bar:focus {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.search-bar::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.2rem 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: inherit;
}

/* ── Filter Pills ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.filter-pill {
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-pill:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

.filter-pill.premium-filter.active {
  background: var(--premium-gold);
  border-color: var(--premium-gold);
  color: #000;
}

/* ── Section Headers ── */
.section {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── Category Grid ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  text-align: center;
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.category-card.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--accent-purple);
}

.category-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-card .name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.category-card .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Skill Cards Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  contain: layout style;
  animation: fadeInUp 0.4s ease both;
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-card.premium {
  border-color: rgba(245, 158, 11, 0.2);
}

.skill-card.premium:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px var(--premium-gold-glow);
}

.skill-card.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--premium-gradient);
}

.skill-card.selected {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.skill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.skill-card-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-card-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.skill-card-badges {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-premium {
  background: var(--premium-gold-glow);
  color: var(--premium-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.badge-free {
  background: rgba(99, 102, 241, 0.15);
  color: var(--free-badge);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-tier {
  font-size: 0.6rem;
}

.badge-tier-verified {
  background: rgba(16, 185, 129, 0.15);
  color: var(--tier-verified);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-tier-community {
  background: rgba(99, 102, 241, 0.15);
  color: var(--tier-community);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-tier-experimental {
  background: rgba(245, 158, 11, 0.15);
  color: var(--tier-experimental);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.skill-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-card-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-number {
  font-size: 1.5rem;
  font-weight: 800;
}

.score-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.grade-A { background: rgba(16, 185, 129, 0.2); color: var(--grade-a); }
.grade-B { background: rgba(59, 130, 246, 0.2); color: var(--grade-b); }
.grade-C { background: rgba(245, 158, 11, 0.2); color: var(--grade-c); }
.grade-D { background: rgba(249, 115, 22, 0.2); color: var(--grade-d); }
.grade-F { background: rgba(239, 68, 68, 0.2); color: var(--grade-f); }

.star-rating {
  color: var(--premium-gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.skill-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-primary {
  background: var(--accent-purple);
  color: white;
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.btn-premium {
  background: var(--premium-gradient);
  color: #000;
  font-weight: 700;
}

.btn-premium:hover {
  box-shadow: 0 4px 16px var(--premium-gold-glow);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* ── Comparison Selection Bar ── */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 1rem 2rem;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.compare-bar.visible {
  transform: translateY(0);
}

.compare-bar .selected-skill {
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-bar .selected-skill .remove {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.compare-bar .selected-skill .remove:hover {
  color: var(--grade-f);
}

.compare-bar .vs {
  font-weight: 800;
  color: var(--accent-purple);
  font-size: 1.2rem;
}

/* ── Evaluation Panel ── */
.eval-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  overflow-y: auto;
}

.eval-overlay.visible {
  display: flex;
}

.eval-panel {
  width: 100%;
  max-width: 900px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  animation: slideUp 0.4s ease;
}

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

.eval-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.eval-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--grade-f);
  color: var(--grade-f);
}

.eval-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.eval-score-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.eval-score-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.eval-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.eval-grade-big {
  font-size: 1.5rem;
  font-weight: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.eval-info {
  flex: 1;
  min-width: 200px;
}

.eval-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.eval-info .eval-author {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.eval-info .eval-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.eval-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.eval-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.eval-stars {
  color: var(--premium-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* ── Score Breakdown ── */
.eval-section {
  margin-bottom: 2rem;
}

.eval-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-bar-label {
  width: 120px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.score-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.score-bar-value {
  width: 36px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Radar Chart ── */
.radar-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.radar-canvas {
  max-width: 300px;
  max-height: 300px;
}

/* ── Pros & Cons ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pros-list, .cons-list {
  list-style: none;
}

.pros-list li, .cons-list li {
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pros-list li:last-child, .cons-list li:last-child {
  border-bottom: none;
}

.pros-list .icon { color: var(--tier-verified); }
.cons-list .icon { color: var(--grade-f); }

/* ── Features List ── */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  padding: 0.35rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ── User Reviews ── */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.85rem;
}

.review-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--premium-gold);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.review-comment {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Premium Upsell Card ── */
.upsell-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.upsell-card h3 {
  color: var(--premium-gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.upsell-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ── Comparison Panel ── */
.compare-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  overflow-y: auto;
}

.compare-overlay.visible {
  display: flex;
}

.compare-panel {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  animation: slideUp 0.4s ease;
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.compare-skill-header {
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.compare-skill-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.compare-skill-header .score {
  font-size: 2rem;
  font-weight: 900;
  margin: 0.25rem 0;
}

.compare-vs {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-purple);
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.compare-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.compare-table tr td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table tr td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.compare-table td.winner {
  color: var(--tier-verified);
  font-weight: 600;
  position: relative;
}

.compare-table td.winner::after {
  content: '👑';
  margin-left: 0.35rem;
  font-size: 0.7rem;
}

.compare-table td.loser {
  color: var(--text-muted);
}

/* ── Compare Score Bars ── */
.compare-score-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.compare-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-bar-value {
  font-size: 0.75rem;
  font-weight: 600;
  width: 28px;
  text-align: right;
}

/* ── Verdict Section ── */
.verdict-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.verdict-section h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.verdict-winner {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tier-verified);
  margin-bottom: 0.5rem;
}

.verdict-reason {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.verdict-tally {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.tally-item {
  text-align: center;
}

.tally-count {
  font-size: 2rem;
  font-weight: 900;
}

.tally-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Premium Showcase ── */
.premium-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.premium-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(124, 58, 237, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--premium-gradient);
}

.premium-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--premium-gold-glow);
}

.premium-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.premium-card-price {
  color: var(--premium-gold);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.premium-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.premium-card-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.premium-card-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.premium-card-features li::before {
  content: '✦';
  color: var(--premium-gold);
  font-size: 0.7rem;
}

/* ── Footer ── */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-purple);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

.skills-grid .skill-card:nth-child(1) { animation-delay: 0.05s; }
.skills-grid .skill-card:nth-child(2) { animation-delay: 0.1s; }
.skills-grid .skill-card:nth-child(3) { animation-delay: 0.15s; }
.skills-grid .skill-card:nth-child(4) { animation-delay: 0.2s; }
.skills-grid .skill-card:nth-child(5) { animation-delay: 0.25s; }
.skills-grid .skill-card:nth-child(6) { animation-delay: 0.3s; }

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

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

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .eval-panel, .compare-panel {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .eval-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compare-header {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .compare-table {
    font-size: 0.75rem;
  }

  .compare-table td, .compare-table th {
    padding: 0.5rem;
  }

  .premium-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 1rem 2rem;
    min-height: 50vh;
  }

  .eval-overlay, .compare-overlay {
    padding: 4rem 0.5rem 1rem;
  }

  .compare-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .orb {
    animation: none;
    opacity: 0.2;
  }

  .bg-gradient {
    animation: none;
  }
}

/* ══════════════════════════════════════════
   Import Skills Section
   ══════════════════════════════════════════ */

/* ── Import Grid Layout ── */
.import-section {
  padding-bottom: 1rem;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.import-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.import-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.import-card-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.import-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.import-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.import-card-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.import-action-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ── Drop Zone ── */
.drop-zone {
  width: 100%;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.drop-zone:hover {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.05);
}

.drop-zone.drag-over {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.12);
  box-shadow: inset 0 0 20px var(--accent-purple-glow);
  transform: scale(1.02);
}

.drop-zone-icon {
  font-size: 1.5rem;
  transition: var(--transition);
}

.drop-zone.drag-over .drop-zone-icon {
  transform: translateY(-4px);
}

.drop-zone-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drop-zone-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── GitHub Import Row ── */
.github-import-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.github-url-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  min-width: 0;
}

.github-url-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.github-url-input::placeholder {
  color: var(--text-muted);
}

/* ── Imported Count Badge ── */
.imported-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ── User Added Badge ── */
.badge-user-added {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ── Nav Import Link ── */
.nav-import {
  color: var(--accent-purple) !important;
}

/* ══════════════════════════════════════════
   Toast Notifications
   ══════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--text-primary);
  pointer-events: all;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 420px;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  border-left: 3px solid var(--tier-verified);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  border-left: 3px solid var(--grade-f);
}

.toast-info {
  border-color: rgba(59, 130, 246, 0.4);
  border-left: 3px solid var(--accent-blue);
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   Manual Skill Form Overlay
   ══════════════════════════════════════════ */

.manual-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  overflow-y: auto;
}

.manual-form-overlay.visible {
  display: flex;
}

.manual-form-panel {
  width: 100%;
  max-width: 700px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  animation: slideUp 0.4s ease;
}

.manual-form-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group input[type="number"] {
  max-width: 100%;
}

.form-divider {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Import Section Responsive ── */
@media (max-width: 768px) {
  .import-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    max-width: 100%;
  }

  .manual-form-panel {
    padding: 1.5rem;
  }
}
