/* GeminiNeon JetBrains Plugins Showcase — Pure static CSS, zero external requests */
:root {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-card: #151e30;
  --bg-card-hover: #1b273d;
  --border: #24324b;
  --border-strong: #334669;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #38bdf8;
  --btn-primary-fg: #06131f;
  --accent-bg: rgba(56, 189, 248, 0.14);
  --pro: #c4b5fd;
  --pro-bg: rgba(167, 139, 250, 0.16);
  --free: #6ee7b7;
  --free-bg: rgba(52, 211, 153, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #334155;
    --text-dim: #475569;
    --accent: #0369a1;
    --accent-strong: #0369a1;
    --btn-primary-fg: #ffffff;
    --accent-bg: rgba(3, 105, 161, 0.08);
    --pro: #6d28d9;
    --pro-bg: rgba(109, 40, 217, 0.09);
    --free: #047857;
    --free-bg: rgba(4, 120, 87, 0.09);
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 0.9rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--border);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 0 0 22px;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.04rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-stats strong { color: var(--text); }

/* IDE Compatibility Chip Bar */
.ide-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ide-strip-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-right: 4px;
}
.ide-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 11px;
}
.ide-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--free);
  flex-shrink: 0;
}

/* Tier Comparison Strip */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 32px;
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.tier-card.pro { border-color: rgba(167, 139, 250, 0.45); }
.tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.tier-head h2 { margin: 0; font-size: 1.05rem; }
.price-tag {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.price-tag.free { color: var(--free); background: var(--free-bg); }
.price-tag.pro { color: var(--pro); background: var(--pro-bg); }
.tier-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Filter Bar */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.search-input {
  flex: 1 1 280px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.95rem;
}
.search-input::placeholder { color: var(--text-dim); }
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--btn-primary-fg);
}
.result-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}

/* Category Sections & Plugin Cards */
.cat-section { margin-bottom: 36px; }
.cat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cat-header h2 { margin: 0; font-size: 1.25rem; }
.cat-header p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
}
.card-title { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.card-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--accent-strong);
  color: var(--btn-primary-fg);
}
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Plugin Detail Page */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border);
}
.detail-id {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
}
.detail-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; }
.detail-id h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.detail-lead { margin: 0 0 12px; color: var(--text-muted); font-size: 1rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.cta-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.cta-box .btn-primary { padding: 10px 16px; font-size: 0.94rem; }
.cta-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.feature-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.feature-panel.pro { border-color: rgba(167, 139, 250, 0.45); }
.feature-panel h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.feature-list { margin: 0; padding-left: 18px; }
.feature-list li { margin-bottom: 10px; color: var(--text-muted); font-size: 0.93rem; }
.feature-list li b, .feature-list li strong { color: var(--text); }

.ide-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.ide-section h2 { margin: 0 0 12px; font-size: 1.08rem; }
.ide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ide-item {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.86rem;
}
.ide-item strong { display: block; color: var(--text); }
.ide-item span { color: var(--text-dim); font-size: 0.8rem; }

.related-section { margin: 32px 0 40px; }
.related-section h2 { margin: 0 0 14px; font-size: 1.15rem; }

.empty-state {
  display: none;
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  margin-bottom: 32px;
}
.empty-state p { margin: 0 0 12px; }

/* Local Offline IDE vs Cloud SaaS Comparison Table */
.compare-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.compare-head h2 { margin: 0; font-size: 1.2rem; }
.compare-head p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: break-word;
}
.compare-table thead th {
  border-top: none;
  border-bottom: 2px solid var(--border-strong);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}
.compare-table th.col-local,
.compare-table td.col-local {
  background: var(--accent-bg);
}
.compare-table thead th.col-local {
  color: var(--accent);
}
.compare-table td.col-dim {
  font-weight: 700;
  color: var(--text);
  width: 22%;
}
.compare-table td.col-local {
  color: var(--text);
  width: 41%;
}
.compare-table td.col-cloud {
  color: var(--text-muted);
  width: 37%;
}

.cross-promo {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cross-promo-copy { max-width: 700px; min-width: 0; }
.cross-promo-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.cross-promo h2 { margin: 0 0 6px; font-size: 1.08rem; }
.cross-promo p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.card, .tier-card, .feature-panel, .ide-section, .detail-id > div { min-width: 0; }
.badge { max-width: 100%; overflow-wrap: anywhere; }
.card-desc, .detail-lead, .feature-list li { overflow-wrap: break-word; }

.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}
.faq-section h2 { margin: 0 0 12px; font-size: 1.15rem; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 0.94rem; color: var(--text); }
.faq-item p { margin: 8px 0 0; color: var(--text-muted); font-size: 0.9rem; overflow-wrap: break-word; }
.filetype-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#catalog, #pricing, #compare, #faq, .cat-section { scroll-margin-top: 76px; }

@media (max-width: 960px) {
  .plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-sections { grid-template-columns: 1fr; }
  .ide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #catalog, #pricing, #compare, #faq, .cat-section { scroll-margin-top: 132px; }
  .header-inner { flex-wrap: wrap; padding: 10px 20px; }
  .hero-kicker { border-radius: 8px; line-height: 1.35; }
  .tier-grid { grid-template-columns: 1fr; }
  .plugin-grid { grid-template-columns: 1fr; }
  .ide-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; font-size: 0.84rem; flex-wrap: wrap; }
  .detail-id { flex-direction: column; }
  .cta-box { width: 100%; min-width: 0; }
  .cross-promo .btn { width: 100%; }
  .card-actions { flex-wrap: wrap; }
  .compare-section { padding: 16px; }
  .compare-table thead { display: none; }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .compare-table tr:last-child { margin-bottom: 0; }
  .compare-table td {
    width: 100% !important;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
  }
  .compare-table td.col-dim {
    border-top: none;
    background: var(--bg-elevated);
    font-size: 0.92rem;
  }
  .compare-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    margin-bottom: 4px;
  }
  .compare-table td.col-local[data-label]::before { color: var(--accent); }
}
