/* HidRyx — /projects page-specific styles.
   Shared chrome (.section, .btn, .page-hero, nav, footer, etc.) already
   lives in assets/css/chrome.css and is not duplicated here. */

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

.project-card {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card-type {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-card h3 { margin: 0 0 8px; font-size: 20px; }
.project-card p { margin: 0; color: var(--soft); font-size: 14px; }

.project-card-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent);
}

.tech-list { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--soft);
}

/* ---- Project detail pages (e.g. /projects/mizal, /projects/node) ----
   These lived only in the old root style.css, which the detail pages do
   not load, so they are declared here — the stylesheet both of them
   share. */

.intro-content {
  max-width: 72ch;
  color: var(--soft);
  line-height: 1.75;
}
.intro-content p { margin: 0 0 16px; }
.intro-content p:last-child { margin-bottom: 0; }

.intro-content a,
.text-primary {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.intro-content a:hover,
.text-primary:hover { border-bottom-color: var(--accent); }

.outbound-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .2s ease, background .2s ease;
}
.outbound-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.outbound-link .arrow { transition: transform .2s var(--ease); }
[dir="rtl"] .outbound-link .arrow { transform: scaleX(-1); }
.outbound-link:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .outbound-link:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Capability / feature grid reused by the detail pages. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .02em;
}
.feature-card p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
}
.feature-card .feature-index {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Plan / tier cards. */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 8%, var(--surface)),
    var(--surface)
  );
}
.plan-name {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.plan-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .01em;
}
.plan-specs {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.9;
}
.plan-specs li { display: flex; justify-content: space-between; gap: 12px; }
.plan-specs li span:last-child { color: var(--text); }

.plan-price {
  margin-top: auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -.01em;
}
.plan-price small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* Terminal / spec panel. */
.spec-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.spec-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.spec-panel-head .dots { display: flex; gap: 5px; margin-inline-end: 6px; }
.spec-panel-head .dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
  display: block;
}
.spec-panel-body {
  margin: 0;
  padding: 18px;
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 2;
  color: var(--soft);
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}
.spec-panel-body .k { color: var(--muted); }
.spec-panel-body .v { color: var(--accent); }
.spec-panel-body .ok { color: #4ADE80; }

/* Small stat strip. */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat-strip > div {
  background: var(--surface);
  padding: 20px;
}
.stat-strip .stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-strip .stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: var(--text);
}

@media (max-width: 640px) {
  .plan-specs li { font-size: 13px; }
  .spec-panel-body { font-size: 12px; line-height: 1.9; }
}
