/* ============================================================
   Five Directory — core design system
   Tokens, layout primitives, navigation, buttons, cards,
   badges, inputs and footer. Documentation-specific styles
   (code blocks, tables, native page, tabs) live in docs.css.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --bg: #0f1115;
  --bg-elevated: #14171d;
  --card: #171b22;
  --card-hover: #1b2029;
  --border: #2a2f3a;
  --border-strong: #3a4150;
  --primary: #4f8cff;
  --primary-dim: rgba(79, 140, 255, 0.12);
  --primary-border: rgba(79, 140, 255, 0.4);
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --green: #3fb950;
  --amber: #d29922;
  --purple: #a371f7;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --maxw: 1120px;
  --nav-h: 56px;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
    "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--primary-dim);
  color: var(--text);
}

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.page {
  padding: 40px 0 80px;
  min-height: calc(100vh - var(--nav-h) - 80px);
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-mark {
  height: 26px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav-link {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: var(--card);
}
.nav-link.active {
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  transition: border-color 0.15s var(--ease);
}
.nav-search-btn:hover {
  border-color: var(--border-strong);
}
.nav-search-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nav-search-btn span {
  white-space: nowrap;
}
.nav-search-btn kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-secondary);
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  background: var(--card);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.nav-toggle {
  display: none;
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 11px 12px;
    font-size: 15px;
  }
  .nav-toggle {
    display: grid;
  }
  .nav-search-btn span,
  .nav-search-btn kbd {
    display: none;
  }
  .nav-search-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.05s var(--ease);
}
.btn:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #3d7bf0;
  border-color: #3d7bf0;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--card);
  color: var(--text);
}
.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   Inputs
   ============================================================ */
.input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder {
  color: var(--text-muted);
}
.input:focus {
  outline: none;
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease),
    transform 0.15s var(--ease);
}
a.card:hover,
.card.interactive:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
}
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}
@media (max-width: 720px) {
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-client {
  color: var(--primary);
  border-color: var(--primary-border);
}
.badge-server {
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.4);
}
.badge-shared {
  color: var(--purple);
  border-color: rgba(163, 113, 247, 0.4);
}
.badge-verified {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-dim);
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.crumbs a {
  color: var(--text-secondary);
  transition: color 0.15s var(--ease);
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs .sep {
  color: var(--border-strong);
}

/* ============================================================
   Page headers + filters
   ============================================================ */
.page-head {
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.page-head .lede {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 60ch;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar .input {
  flex: 1;
  min-width: 220px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s var(--ease);
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.chip.active {
  background: var(--primary-dim);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* ============================================================
   Directory cards (stores / resources)
   ============================================================ */
.dir-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dir-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dir-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.dir-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dir-title h3 {
  margin: 0;
  font-size: 15px;
}
.dir-cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dir-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dir-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}
.res-creator {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.badge svg {
  width: 12px;
  height: 12px;
}
.dir-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.dir-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ============================================================
   Empty / loading states
   ============================================================ */
.state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.state strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 16px;
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--card) 0%,
    var(--card-hover) 50%,
    var(--card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border-radius: var(--radius);
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s var(--ease);
}
.footer-links a:hover {
  color: var(--text);
}
.footer .brand {
  font-size: 14px;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.pagination button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.15s var(--ease);
}
.pagination button:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pagination button.active {
  background: var(--primary-dim);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Fade utility ---- */
.fade-in {
  animation: fadeIn 0.2s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Store cards (Discord-driven: banner background + server icon)
   ============================================================ */
.store-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.store-banner {
  height: 92px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
}
.store-banner.no-banner {
  background-image: linear-gradient(135deg, #1d2330 0%, #171b22 55%, #1a2030 100%);
  position: relative;
}
.store-banner.no-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 30%, var(--primary-dim) 0%, transparent 60%);
}
.store-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 16px 16px;
  flex: 1;
}
.store-logo {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-radius: 14px;
  border: 3px solid var(--card);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}
.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.store-head h3 {
  margin: 0;
  font-size: 16px;
}
.store-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.store-cat {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.store-members {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.store-members svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}
.store-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Discord-branded join button */
.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752e0;
  border-color: #4752e0;
  color: #fff;
}
.btn-discord svg {
  width: 18px;
  height: 18px;
}

/* Sponsored / advertisement badge on store cards */
.badge-ad {
  color: var(--amber);
  border-color: rgba(210, 153, 34, 0.4);
  background: rgba(210, 153, 34, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

/* ============================================================
   Featured store — big full-width hero card on top
   ============================================================ */
.store-featured {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}
.store-featured-banner {
  height: 200px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.store-featured-banner.no-banner {
  background-image: linear-gradient(120deg, #18202e 0%, #171b22 45%, #1d2842 100%);
}
.store-featured-banner.no-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 35%, var(--primary-dim) 0%, transparent 58%);
}
.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 17, 21, 0.6);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.store-featured-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.store-featured-logo {
  width: 76px;
  height: 76px;
  margin-top: 0;
  border-radius: 18px;
  font-size: 24px;
  flex-shrink: 0;
}
.store-featured-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.store-featured-info h3 {
  font-size: 22px;
  margin: 0;
}
.store-featured-info .dir-desc {
  font-size: 14.5px;
}
.store-featured-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .store-featured-banner { height: 140px; }
  .store-featured-actions { width: 100%; }
  .store-featured-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Resource marketplace (Cfx.re-style releases)
   ============================================================ */
.release-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.release-card:hover {
  border-color: var(--primary-dim);
  transform: translateY(-2px);
}
.release-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.release-banner.no-banner {
  background-image: linear-gradient(120deg, #18202e, #171b22 55%, #1d2842);
}
.release-price {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 4px 10px;
  border-top-left-radius: 8px;
}
.release-price.paid { background: #d6249f; }
.release-price.free { background: #1ea672; }
.release-escrow {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 17, 21, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 9px;
  border-radius: 999px;
}
.release-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.release-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}
.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.release-fw {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--primary);
  opacity: 0.9;
}

/* ---- Resource detail page ---- */
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.resource-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 360px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.resource-banner.no-banner {
  background-image: linear-gradient(120deg, #18202e, #171b22 55%, #1d2842);
}
.resource-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 22px 0 6px;
}
.resource-head-main { flex: 1 1 420px; min-width: 0; }
.resource-head h1 { font-size: 27px; margin: 0 0 6px; line-height: 1.2; }
.resource-by { color: var(--text-secondary); font-size: 14.5px; }
.resource-by strong { color: var(--text); font-weight: 600; }
.resource-tagline {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
}
.resource-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.release-price.static,
.release-escrow.static {
  position: static;
  border-radius: 999px;
}
.release-price.static { padding: 4px 12px; }
.fw-badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim);
  border-radius: 999px;
  padding: 4px 11px;
}
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}
.resource-section { margin-top: 30px; }
.resource-section h2 {
  font-size: 18px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.resource-desc { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0; }
.resource-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.resource-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.resource-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}
.resource-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--card);
  transition: border-color 0.15s ease;
}
.shot:hover { border-color: var(--primary-dim); }
.shot img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.92);
  padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 640px) {
  .resource-gallery { grid-template-columns: 1fr; }
  .resource-actions { width: 100%; }
  .resource-actions .btn { flex: 1; justify-content: center; }
}

/* ---- Framework logos (replace text framework tags) ---- */
.fw-logos {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.fw-logo {
  display: block;
  width: auto;
  height: 18px;
}
.release-meta .release-fw .fw-logo { height: 15px; }
.resource-badges .fw-logo { height: 21px; }
.resource-badges .fw-logos { gap: 11px; margin-left: 2px; }

/* ---- Creator (store) logo + link ---- */
.creator-logo {
  height: 18px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}
.release-creator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.resource-by {
  display: flex;
  align-items: center;
  gap: 8px;
}
.resource-by .creator-logo {
  height: 22px;
  max-width: 140px;
}
.creator-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}
.creator-link strong { transition: color 0.15s ease; }
.creator-link:hover strong {
  color: var(--primary);
  text-decoration: underline;
}

/* ---- Footer disclaimer ---- */
.footer-disclaimer {
  width: 100%;
  margin: 0;
  padding: 14px 24px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0.7;
}
