/* ═══════════════════════════════════════════
   SkillBox - Skill Marketplace Styles
   Terminal-inspired modern design
   ═══════════════════════════════════════════ */

/* ── Reset & Variables ───────────────────── */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-tertiary: #eef0f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6f8;
  --border: #e0e3e8;
  --border-hover: #c8cdd5;
  --text-primary: #1a1a2e;
  --text-secondary: #5a5f72;
  --text-muted: #8a8fa3;
  --accent: #5b4cd4;
  --accent-light: #6c5ce7;
  --accent-glow: rgba(91, 76, 212, 0.08);
  --green: #0a9b66;
  --green-glow: rgba(10, 155, 102, 0.08);
  --yellow: #d4a017;
  --red: #e04848;
  --blue: #2b7de9;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navbar ───────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-text {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-link.active {
  color: var(--accent-light);
  background: var(--accent-glow);
}

.nav-cmd {
  color: var(--green);
  margin-right: 0.25rem;
}

.nav-search {
  margin-left: auto;
}

.search-form-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input-mini {
  width: 200px;
  padding: 0.4rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  outline: none;
  transition: var(--transition);
}

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

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

.search-btn-mini {
  padding: 0.4rem 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn-mini:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--green-glow);
  border: 1px solid rgba(0, 214, 143, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--green);
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-search {
  margin-bottom: 1.5rem;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem;
  transition: var(--transition);
}

.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
  padding: 0 0.75rem;
  font-size: 1.25rem;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 0;
  outline: none;
  font-family: var(--font-mono);
}

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

.search-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-tag-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-tag {
  padding: 0.3rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: var(--transition);
}

.hero-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 76, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 76, 212, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

/* ── Stats Bar ────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Sections ─────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-file {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Buttons ──────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

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

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

.skill-icon {
  font-size: 2rem;
}

.skill-meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-stars {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--yellow);
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.skill-author {
  color: var(--text-muted);
}

.skill-version {
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.skill-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.2rem 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.tag-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.skill-compat {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.compat-badge {
  padding: 0.15rem 0.5rem;
  background: var(--green-glow);
  border: 1px solid rgba(0, 214, 143, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--green);
}

/* ── Category Cards ───────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.category-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}

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

.category-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

.category-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Categories full page grid */
.categories-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-card-large {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

.category-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.category-icon-large {
  font-size: 3rem;
}

.category-count-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.category-name-large {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-desc-large {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.category-explore {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-light);
  transition: var(--transition);
}

.category-card-large:hover .category-explore {
  color: var(--accent);
}

/* Category hero */
.category-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.category-hero-icon {
  font-size: 3.5rem;
}

.category-hero-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  background: var(--green-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* ── Recent List ──────────────────────────── */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.recent-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.recent-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.recent-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.recent-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.recent-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Search Page ──────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.search-form {
  margin-bottom: 2rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.search-input-wrap .search-icon {
  padding: 0 0.75rem;
}

.search-input-full {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.75rem 0;
  outline: none;
  font-family: var(--font-mono);
}

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

.filter-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.filter-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--accent);
}

.sort-buttons {
  display: flex;
  gap: 0.25rem;
}

.sort-btn {
  padding: 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.sort-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.sort-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-light);
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.results-count strong {
  color: var(--text-primary);
}

.results-page {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Pagination ───────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.page-btn {
  padding: 0.5rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-mono);
}

.page-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

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

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

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ── Detail Page ──────────────────────────── */
.detail-hero {
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: flex-start;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.detail-icon {
  font-size: 3.5rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
}

.detail-author {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.author-link {
  color: var(--accent-light);
  transition: var(--transition);
}

.author-link:hover {
  text-decoration: underline;
}

.detail-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Install Block */
.install-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.install-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.install-icon {
  font-size: 1rem;
}

.install-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.install-tab {
  padding: 0.45rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.install-tab:hover {
  color: var(--text-secondary);
}

.install-tab.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.install-section {
  margin-bottom: 1rem;
}

.install-section:last-child {
  margin-bottom: 0;
}

.install-panel {
  margin-top: 0.75rem;
}

.install-section-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.install-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.install-command code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
}

.copy-btn {
  padding: 0.4rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Detail sections */
.detail-section {
  margin-bottom: 2rem;
}

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

.detail-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ── Markdown Body ───────────────────────── */
.markdown-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
  word-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: var(--text-primary);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.3;
}

.markdown-body h1 { font-size: 1.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4em; }
.markdown-body h2 { font-size: 1.35rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body h4 { font-size: 1rem; }

.markdown-body p {
  margin-bottom: 1em;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.markdown-body li {
  margin-bottom: 0.3em;
}

.markdown-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body a:hover {
  color: var(--accent-light);
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--text-primary);
}

.markdown-body pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1em;
}

.markdown-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 1em;
  margin: 0 0 1em 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 0.5em 0.75em;
  text-align: left;
  font-size: 0.9rem;
}

.markdown-body th {
  background: var(--bg-secondary);
  font-weight: 600;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.compat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.compat-check {
  font-size: 0.85rem;
}

.detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-stat-value {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.sidebar-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}

/* Related skills */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.related-item:hover {
  background: var(--bg-tertiary);
}

.related-icon {
  font-size: 1.5rem;
}

.related-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.related-stars {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--yellow);
}

/* ── CTA Section ──────────────────────────── */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(91, 76, 212, 0.04) 0%, rgba(43, 125, 233, 0.03) 100%);
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ── Footer ───────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: var(--transition);
}

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

.footer-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.3rem 0;
}

.footer-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

.footer-stat .stat-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  color: var(--green);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ── Nav User Menu ─────────────────────────── */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.nav-auth-link {
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.8rem !important;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.user-menu-trigger:hover {
  background: var(--bg-tertiary);
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-avatar-xs {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name-sm {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 0.5rem;
  min-width: 200px;
  z-index: 200;
}

.user-dropdown > * {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.user-menu:hover .user-dropdown {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

.dropdown-logout:hover {
  color: var(--red);
}

/* ── Flash Messages ───────────────────────── */
.flash {
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.flash-error {
  background: rgba(255, 107, 107, 0.1);
  border-bottom: 1px solid rgba(255, 107, 107, 0.2);
  color: var(--red);
}

.flash-success {
  background: rgba(0, 214, 143, 0.1);
  border-bottom: 1px solid rgba(0, 214, 143, 0.2);
  color: var(--green);
}

/* ── Auth Pages ───────────────────────────── */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.auth-success {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.2);
  color: var(--green);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group-grow {
  flex: 2;
}

.form-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label-cmd {
  color: var(--green);
}

.form-input, .form-textarea {
  padding: 0.65rem 0.85rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}

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

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

.form-input-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-input-sm {
  max-width: 100px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-sans);
}

.form-mono {
  font-family: var(--font-mono) !important;
  font-size: 0.85rem;
}

.form-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
  font-size: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-link {
  color: var(--accent-light);
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ── Form Card ────────────────────────────── */
.form-card {
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-card-wide {
  max-width: 800px;
}

/* ── Dashboard ────────────────────────────── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.dash-stat-card:hover {
  border-color: var(--border-hover);
}

.dash-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.dash-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

.dash-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.dash-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.dash-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.dash-nav-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.dash-nav-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.dash-nav-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.dash-nav-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-nav-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dash-section {
  margin-bottom: 3rem;
}

/* ── Resource List ────────────────────────── */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.resource-list-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.resource-list-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.resource-list-info {
  flex: 1;
  min-width: 0;
}

.resource-list-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.resource-list-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-list-owner {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.resource-list-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.resource-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.resource-list-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Type Badges ──────────────────────────── */
.resource-type-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.type-skill {
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.type-mcp {
  background: rgba(77, 166, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(77, 166, 255, 0.3);
}

.type-resource {
  background: rgba(255, 217, 61, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(255, 217, 61, 0.3);
}

/* ── Visibility Badges ────────────────────── */
.visibility-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 600;
}

.vis-public {
  background: rgba(0, 214, 143, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 214, 143, 0.3);
}

.vis-private {
  background: rgba(152, 152, 176, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(152, 152, 176, 0.3);
}

.vis-shared {
  background: rgba(77, 166, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(77, 166, 255, 0.3);
}

/* ── Type Selector ────────────────────────── */
.type-selector {
  display: flex;
  gap: 0.5rem;
}

.type-option {
  padding: 0.65rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.type-option:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.type-option.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Visibility Selector ──────────────────── */
.visibility-selector {
  display: flex;
  gap: 0.75rem;
}

.vis-option {
  flex: 1;
  cursor: pointer;
}

.vis-option input[type="radio"] {
  display: none;
}

.vis-option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.vis-option input:checked + .vis-option-card {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.vis-option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.vis-option-card strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.vis-option-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Resource Actions ─────────────────────── */
.resource-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: rgba(255, 107, 107, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: var(--red);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-danger-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

/* ── Share Section ────────────────────────── */
.share-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.share-form .form-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.share-list {
  margin-top: 1rem;
}

.share-list-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.share-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.share-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.share-username {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ── Code Block ───────────────────────────── */
.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  white-space: pre-wrap;
}

/* ── Page Header Row ──────────────────────── */
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.page-header-actions {
  display: flex;
  gap: 0.5rem;
}

/* ── User Bio ─────────────────────────────── */
.user-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  max-width: 500px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .nav-search {
    order: 2;
    margin-left: 0;
    flex: 1;
  }

  .search-input-mini {
    width: 100%;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid-full {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-row {
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: column;
  }

  .recent-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .category-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-user {
    order: 2;
    margin-left: auto;
  }

  .user-name-sm {
    display: none;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-actions {
    flex-wrap: wrap;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-nav-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .visibility-selector {
    flex-direction: column;
  }

  .type-selector {
    flex-wrap: wrap;
  }

  .resource-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-list-meta {
    flex-direction: row;
    width: 100%;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

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