/* ===== MOLTBOT DIRECTORY - PROFESSIONAL DESIGN SYSTEM ===== */

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

:root {
  /* === DARK THEME (Bluish) - Default === */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-elevated: #1f2937;
  --bg-hover: #374151;
  --bg-tertiary: #1e293b;

  /* Accent */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-subtle: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.2);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border: #1e293b;
  --border-hover: #334155;
  --header-bg: rgba(10, 14, 23, 0.85);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* === LIGHT THEME (Beige/Warm) === */
[data-theme="light"] {
  --bg-primary: #faf7f2;
  --bg-secondary: #f5f0e8;
  --bg-elevated: #ebe5db;
  --bg-hover: #e0d8cc;
  --bg-tertiary: #f0ebe3;

  /* Accent */
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-subtle: rgba(180, 83, 9, 0.1);
  --accent-glow: rgba(180, 83, 9, 0.15);

  /* Text */
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;

  /* Borders */
  --border: #e7e5e4;
  --border-hover: #d6d3d1;
  --header-bg: rgba(250, 247, 242, 0.9);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Theme Switcher */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--radius-md);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.header-link:hover {
  color: var(--text-primary);
}

.header-link svg {
  width: 16px;
  height: 16px;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 24px 120px;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient fade at bottom for smooth transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Animated floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #06b6d4 0%, var(--accent) 100%);
  top: 50%;
  right: -100px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);
  bottom: -100px;
  left: 30%;
  animation-delay: -14s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(20px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-10px, 20px) scale(0.95);
  }

  75% {
    transform: translate(-20px, -10px) scale(1.02);
  }
}

/* Light theme orb adjustments */
[data-theme="light"] .hero-orb {
  opacity: 0.3;
}

[data-theme="light"] .hero-orb-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

[data-theme="light"] .hero-orb-2 {
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
}

[data-theme="light"] .hero-orb-3 {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.hero-badge:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: translateY(-2px);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

[data-theme="light"] .hero-badge {
  border-color: rgba(180, 83, 9, 0.25);
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

[data-theme="light"] .hero-title-accent {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Stats Cards */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .hero-stats {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.hero-stat-card {
  padding: 20px 36px;
  text-align: center;
  transition: all var(--transition-base);
}

.hero-stat-card:hover {
  transform: scale(1.05);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.hero-stat-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SEARCH ===== */
.search-section {
  padding: 0 24px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.search-wrapper {
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-icon svg {
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

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

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-shortcut {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  font-family: inherit;
}

/* Search Results */
.search-results {
  max-width: 600px;
  margin: -16px auto 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-results-title {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-elevated);
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-result-cat {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* Filter Pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

/* ===== CATEGORIES ===== */
.categories-section {
  padding: 60px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-count {
  font-size: 14px;
  color: var(--text-muted);
}

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

.category-card,
.category-card * {
  text-decoration: none;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  color: inherit;
}

.category-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.category-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.category-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.category-content {
  flex: 1;
  min-width: 0;
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.category-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== SKILLS ===== */
.skills-section {
  padding: 60px 24px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.skill-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.skill-badge svg {
  width: 12px;
  height: 12px;
}

.skill-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.skill-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.skill-author {
  font-size: 13px;
  color: var(--text-muted);
}

.skill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.skill-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.skill-link svg {
  width: 14px;
  height: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== CATEGORY HERO ===== */
.category-hero {
  padding: 120px 24px 60px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.category-hero-content {
  max-width: 1280px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.category-hero-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.category-hero-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.category-hero-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.category-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.category-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.category-hero-stats {
  margin-top: 8px;
}

.category-hero-count {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== MARKDOWN CONTENT ===== */
.markdown-content {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.markdown-content h1 {
  font-size: 28px;
}

.markdown-content h2 {
  font-size: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.markdown-content h3 {
  font-size: 20px;
}

.markdown-content p {
  margin-bottom: 16px;
}

.markdown-content li {
  margin-bottom: 8px;
}

.markdown-content code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--accent);
}

.markdown-content pre {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 24px;
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

.markdown-content a {
  color: var(--accent);
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.markdown-content th,
.markdown-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.markdown-content th {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== SKILL PAGE LAYOUT ===== */
.skill-page-header {
  padding: 100px 24px 40px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.skill-page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.skill-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.skill-page-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.skill-page-author {
  color: var(--text-muted);
  font-size: 14px;
}

.skill-page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.skill-page-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

/* Skill Page Two-Column Layout */
.skill-page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}

.skill-page-content {
  min-width: 0;
}

/* Sidebar */
.skill-page-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 12px;
  cursor: pointer;
  border: none;
}

.sidebar-btn:last-child {
  margin-bottom: 0;
}

.sidebar-btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.sidebar-btn-primary:hover {
  opacity: 0.9;
}

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

.sidebar-btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

.sidebar-btn-clawdhub {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  border: none;
}

.sidebar-btn-clawdhub:hover {
  opacity: 0.9;
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

.sidebar-btn svg {
  width: 18px;
  height: 18px;
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  gap: 16px;
}

.sidebar-info-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-info-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .skill-page-body {
    grid-template-columns: 1fr;
  }

  .skill-page-sidebar {
    position: static;
    order: -1;
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-text a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link svg {
  width: 16px;
  height: 16px;
}

/* Footer Badges - Theme switching */
.footer-badges .badge-light {
  display: block;
}

.footer-badges .badge-dark {
  display: none;
}

[data-theme="light"] .footer-badges .badge-light {
  display: none;
}

[data-theme="light"] .footer-badges .badge-dark {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-inner {
    padding: 0;
  }

  .logo-text {
    font-size: 18px;
  }

  .header-links {
    gap: 8px;
  }

  .header-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 120px 20px 60px;
    min-height: auto;
  }

  /* Scale down orbs on mobile */
  .hero-orb-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
  }

  .hero-orb-2 {
    width: 250px;
    height: 250px;
    right: -80px;
  }

  .hero-orb-3 {
    width: 200px;
    height: 200px;
    left: 20%;
  }

  .hero-badge {
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 20px;
  }

  .hero-badge svg {
    width: 12px;
    height: 12px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    padding: 0 8px;
  }

  .hero-stats {
    padding: 6px;
    border-radius: 16px;
  }

  .hero-stat-card {
    padding: 16px 24px;
  }

  .hero-stat-value {
    font-size: 32px;
  }

  .hero-stat-label {
    font-size: 11px;
  }

  .hero-stat-divider {
    height: 32px;
  }



  .search-section {
    padding: 24px 16px 32px;
  }

  .search-wrapper {
    max-width: 100%;
  }

  .search-input {
    padding: 14px 14px 14px 44px;
    font-size: 15px;
  }

  .categories-section {
    padding: 32px 16px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .footer {
    padding: 32px 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 48px;
  }

  /* Hide orbs on very small screens for performance */
  .hero-orb {
    display: none;
  }

  .hero-badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  .hero-title {
    font-size: clamp(24px, 10vw, 32px);
  }

  .hero-subtitle {
    font-size: 14px;
    padding: 0;
  }

  .hero-stats {
    padding: 6px;
  }

  .hero-stat-card {
    padding: 12px 20px;
  }

  .hero-stat-value {
    font-size: 26px;
  }

  .hero-stat-label {
    font-size: 10px;
  }

  .search-shortcut {
    display: none;
  }

  .categories-section {
    padding: 24px 12px;
  }

  .category-card {
    padding: 16px;
  }

  .category-title {
    font-size: 15px;
  }

  .category-desc {
    font-size: 13px;
  }

  .filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: white;
}