/* CLIDE — Tool Marketplace pages */
.mk-nav { border-bottom: 1px solid #3d3c3c; background: rgba(20,20,20,0.92); }
.mk-nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 3.25rem; font-size: 0.875rem; }
.mk-nav a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.mk-nav a:hover { color: #e8a020; }
.mk-nav .mk-home { margin-right: auto; font-weight: 800; letter-spacing: -0.02em; color: #e8a020; }

.mk { padding-top: 2.5rem; padding-bottom: 4rem; }
.mk-crumb { font-size: 0.8rem; }
.mk-crumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.mk-crumb a::before { content: "\2190  "; }
.mk-crumb a:hover { color: #e8a020; }
.mk-hero { margin: 1rem 0 2rem; }
.mk-title {
  font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(45deg, #d5d0bc 0%, #e8a020 60%, #c8860a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mk-lead { margin-top: 0.75rem; color: rgba(255,255,255,0.7); }
.mk-facts { margin-top: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.mk-note { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mk-search { display: block; position: relative; }
.mk-search input {
  width: 100%; padding: 0.65rem 0.9rem; border-radius: 5px; border: 1px solid #3d3c3c;
  background: rgba(217,217,217,0.05); color: rgba(255,255,255,0.9); font: inherit; font-size: 1rem;
}
.mk-search input:focus { outline: none; border-color: rgba(232,160,32,0.6); }
.mk-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.mk-chips button {
  border-radius: 999px; border: 1px solid #3d3c3c; background: #1c1c1c; color: rgba(255,255,255,0.6);
  padding: 0.25rem 0.8rem; font: inherit; font-size: 0.8rem; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.mk-chips button:hover { border-color: #7a4a10; color: rgba(255,255,255,0.9); }
.mk-chips button[aria-pressed="true"] { border-color: #7a4a10; color: #e8a020; }
.mk-count {
  margin: 1.75rem 0 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.mk-none { color: rgba(255,255,255,0.6); }

.mk-cards { display: grid; gap: 0.75rem; }
.mk-card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.25rem; border-radius: 5px;
  border: 1px solid #3d3c3c; background: #0a0a0a; text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.mk-card[hidden] { display: none; }
.mk-card:hover { border-color: #7a4a10; transform: translateY(-1px); }
.mk-card-name { font-weight: 700; color: rgba(255,255,255,0.9); }
.mk-card-summary { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.mk-badge {
  margin-left: 0.4rem; padding: 0 0.4rem; border: 1px solid #7a4a10; border-radius: 999px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e8a020; vertical-align: middle;
}
.mk-needs { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.mk code, .mk-needs code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: rgba(255,255,255,0.75); }

.mk-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.mk-shots img { width: 100%; border-radius: 5px; border: 1px solid #3d3c3c; background: #0a0a0a; }

.mk-section { margin-top: 2.25rem; }
.mk-heading {
  margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.mk-about p, .mk-about ul { margin-top: 0.8rem; color: rgba(255,255,255,0.75); line-height: 1.65; }
.mk-about ul { padding-left: 1.25rem; list-style: disc; }
.mk-about h3 { margin-top: 1.5rem; font-size: 1rem; color: rgba(255,255,255,0.9); }
.mk-about a, .mk-link a, .mk-deps a, .mk-get a { color: #e8a020; }

.mk-videos, .mk-links, .mk-deps, .mk-fields, .mk-installs { list-style: none; }
.mk-videos { display: grid; gap: 1rem; }
.mk-video figcaption { margin-top: 0.4rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.mk-video figcaption a { color: inherit; }
.mk-video-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0;
  border-radius: 5px; border: 1px solid #3d3c3c; background: #0a0a0a; cursor: pointer; color: inherit; font: inherit;
}
.mk-video-poster img, .mk-video-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-video-blank { background: linear-gradient(135deg, #0a0a0a 0%, #3b1a08 100%); }
.mk-video-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(10,10,10,0.75); border: 1px solid #7a4a10; transition: transform 0.2s, border-color 0.2s;
}
.mk-video-play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #e8a020;
}
.mk-video-poster:hover .mk-video-play { transform: scale(1.06); border-color: #e8a020; }
.mk-video-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.9rem; text-align: left; font-size: 0.875rem;
  color: rgba(255,255,255,0.9); background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.mk-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #3d3c3c; border-radius: 5px; }
.mk-link + .mk-link { margin-top: 0.4rem; }

.mk-io { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.mk-fields { border: 1px solid #3d3c3c; border-radius: 5px; background: #0a0a0a; padding: 0.6rem 1rem; }
.mk-fields li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.mk-type { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.mk-deps { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.mk-deps > li { border: 1px solid #3d3c3c; border-radius: 5px; background: #0a0a0a; padding: 0.8rem 1rem; font-size: 0.875rem; }
.mk-dep-name span { color: rgba(255,255,255,0.55); }
.mk-installs { margin: 0.5rem 0; display: grid; gap: 0.25rem; }
.mk-installs li { display: flex; gap: 0.75rem; align-items: baseline; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.mk-installs span { width: 4.5rem; flex-shrink: 0; }
.mk-installs code { overflow-wrap: anywhere; }

.mk-get ol { padding-left: 1.25rem; color: rgba(255,255,255,0.75); line-height: 1.8; }
.mk-get .mk-note { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .mk-card, .mk-video-play { transition: none; }
  .mk-card:hover { transform: none; }
}
