/* Public Explore gallery (mortar-ai.com/explore, logged-out) — recreated from
   the Claude Design handoff ("Explore Gallery.html"). Fully scoped: every token
   lives on .explore and every class is prefixed, so it's safe to drop into the
   shared app shell (no :root, no bare generic names — see the brand-mark bug). */
.explore *, .explore *::before, .explore *::after { box-sizing: border-box; }

.explore{
  /* —— tokens (scoped to this wrapper) —— */
  --base:#0B0D10; --surface:#15181D; --surface-2:#1B1F26; --surface-3:#21262E;
  --line:#242830; --line-strong:#2E333C; --ink:#E6E8EB; --muted:#8A9099; --dim:#5C636E;
  --accent:#F2B441; --accent-bright:#FFC75A; --accent-deep:#D99A2B; --accent-ink:#1A1206;
  --ok:#34D399; --err:#F87171;
  --r-xl:16px; --r-lg:12px; --r-md:10px; --r-sm:8px; --r-pill:999px;
  --mono:"Geist Mono", ui-monospace, "SF Mono", monospace;

  position:relative; min-height:100vh; min-height:100dvh; isolation:isolate;
  background:var(--base); color:var(--ink);
  font-family:'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  font-feature-settings:'cv01','ss01';
}
.explore *::selection{ background:rgba(242,180,65,.26); color:#fff; }

/* —— brand backdrop: amber glow + faint grid + seam hatch —— */
.explore-bg{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.explore-bg::before{
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image:linear-gradient(180deg, #000, transparent 62%);
          mask-image:linear-gradient(180deg, #000, transparent 62%);
}
.explore-bg::after{
  content:''; position:absolute; top:-180px; left:50%; width:1100px; height:620px;
  transform:translateX(-50%);
  background:radial-gradient(60% 70% at 50% 0%, rgba(242,180,65,.14), transparent 70%);
}

.explore-wrap{ position:relative; z-index:1; max-width:1100px; margin:0 auto; padding:0 20px; }

/* —— top bar —————————————————————————————————————————————————— */
.explore-top{ display:flex; align-items:center; gap:11px; height:62px; }
.explore-logo{ display:flex; align-items:center; gap:9px; text-decoration:none; color:inherit; }
.explore-logo-mark{ width:24px; height:24px; border-radius:7px; display:block; flex:none;
  background:linear-gradient(160deg,#2E343F,#21262E); border:1px solid var(--line-strong);
  position:relative; }
.explore-logo-mark::before{ /* the mortar seam */
  content:''; position:absolute; left:4px; right:4px; top:50%; height:2px; transform:translateY(-50%);
  border-radius:2px; background:var(--accent); box-shadow:0 0 6px rgba(242,180,65,.6); }
.explore-logo-txt{ font-weight:600; font-size:14.5px; letter-spacing:-.01em; }
.explore-top-spacer{ flex:1; }
.explore-signin{ height:36px; padding:0 15px; border-radius:var(--r-md); display:inline-flex; align-items:center;
  background:var(--accent); color:var(--accent-ink); font-weight:600; font-size:13px; text-decoration:none;
  transition:background-color .15s; }
.explore-signin:hover{ background:var(--accent-bright); }

/* —— hero ————————————————————————————————————————————————————— */
.explore-hero{ padding:46px 0 34px; max-width:660px; }
.explore-eyebrow{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:var(--accent); display:inline-flex; align-items:center; gap:9px; }
.explore-eyebrow::before{ content:''; width:22px; height:1.5px; background:var(--accent); border-radius:2px;
  box-shadow:0 0 6px rgba(242,180,65,.5); }
.explore-h1{ font-size:clamp(30px, 6vw, 50px); line-height:1.04; letter-spacing:-.025em; font-weight:600;
  margin:18px 0 0; text-wrap:balance; }
.explore-h1 em{ font-style:normal; color:var(--accent); }
.explore-sub{ font-size:clamp(14.5px,2.4vw,16.5px); line-height:1.55; color:var(--muted); margin:15px 0 0; max-width:520px; }
.explore-count{ display:inline-flex; align-items:center; gap:9px; margin-top:22px;
  height:34px; padding:0 14px 0 12px; border-radius:var(--r-pill);
  background:var(--surface-2); border:1px solid var(--line-strong);
  font-size:13px; color:var(--muted); }
.explore-count b{ color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.explore-livedot{ position:relative; width:8px; height:8px; border-radius:50%; background:var(--accent); flex:none; color:var(--accent); }
.explore-livedot::before{ content:''; position:absolute; inset:-4px; border-radius:50%; background:currentColor; opacity:.35;
  animation:explore-ping 1.7s ease-out infinite; }
@keyframes explore-ping{ 0%{transform:scale(.6);opacity:.5} 100%{transform:scale(1.9);opacity:0} }
.explore-count-sep{ color:var(--dim); }

/* —— controls row ————————————————————————————————————————————— */
.explore-controls{ position:sticky; top:0; z-index:5; padding:14px 0 12px;
  background:linear-gradient(180deg, var(--base) 72%, transparent);
  display:flex; flex-direction:column; gap:12px; }
.explore-controls-main{ display:flex; align-items:center; gap:12px; }
.explore-search{ position:relative; flex:1; min-width:0; }
.explore-search svg{ position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--dim); pointer-events:none; }
.explore-search input{
  width:100%; height:44px; padding:0 14px 0 40px; border-radius:var(--r-md);
  background:var(--surface); border:1px solid var(--line-strong); color:var(--ink);
  font-family:inherit; font-size:14px; outline:none; transition:border-color .15s, box-shadow .15s; }
.explore-search input::placeholder{ color:var(--dim); }
.explore-search input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(242,180,65,.16); }
.explore-sort{ display:inline-flex; flex:none; padding:3px; gap:2px; border-radius:var(--r-md);
  background:var(--surface); border:1px solid var(--line-strong); }
.explore-sort button{ height:36px; padding:0 13px; border:0; border-radius:7px; background:transparent;
  color:var(--muted); font-family:inherit; font-size:12.5px; font-weight:500; cursor:pointer;
  transition:background-color .15s, color .15s; white-space:nowrap; }
.explore-sort button[aria-pressed="true"]{ background:var(--surface-3); color:var(--ink); }

.explore-chips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px;
  /* fade only the RIGHT edge (hints "more →"); never the first chip at the left */
  -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 22px), transparent);
          mask-image:linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.explore-chips::-webkit-scrollbar{ display:none; }
.explore-chip{ flex:none; height:34px; padding:0 14px; border-radius:var(--r-pill);
  background:var(--surface-2); border:1px solid var(--line-strong); color:var(--muted);
  font-family:inherit; font-size:12.5px; font-weight:500; cursor:pointer; white-space:nowrap;
  transition:background-color .15s, color .15s, border-color .15s; }
.explore-chip:hover{ color:var(--ink); border-color:var(--dim); }
.explore-chip[aria-pressed="true"]{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:600; }

/* —— grid ————————————————————————————————————————————————————— */
.explore-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:18px;
  padding:8px 0 60px; }

/* —— card ————————————————————————————————————————————————————— */
.gallery-card{ display:flex; flex-direction:column; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); overflow:hidden;
  transition:transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s, box-shadow .22s;
  will-change:transform; }
.gallery-card:hover{ transform:translateY(-4px); border-color:var(--line-strong);
  box-shadow:0 1px 2px rgba(0,0,0,.4), 0 18px 40px -20px rgba(0,0,0,.8); }
.gallery-card:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* browser-frame thumbnail */
.gallery-shot{ position:relative; }
.gallery-chrome{ display:flex; align-items:center; gap:8px; height:32px; padding:0 11px;
  background:var(--surface-2); border-bottom:1px solid var(--line); }
.gallery-dots{ display:flex; gap:5px; flex:none; }
.gallery-dots i{ width:8px; height:8px; border-radius:50%; background:var(--line-strong); display:block; }
.gallery-url{ flex:1; min-width:0; height:20px; padding:0 9px; border-radius:var(--r-pill);
  background:var(--base); border:1px solid var(--line); display:flex; align-items:center; gap:6px;
  font-family:var(--mono); font-size:10.5px; color:var(--muted); }
.gallery-url .gallery-urltxt{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gallery-urldot{ width:6px; height:6px; border-radius:50%; background:var(--ok); flex:none;
  box-shadow:0 0 5px rgba(52,211,153,.7); }
.gallery-lock{ width:9px; height:9px; flex:none; color:var(--dim); }

/* 16:10 screenshot stand-in: a deterministic on-brand tint (per-card --ghue).
   Swap the .gallery-thumb-fill div for an <img> once real screenshots land. */
.gallery-thumb{ position:relative; aspect-ratio:16/10; overflow:hidden;
  background:var(--surface-3); }
.gallery-thumb-fill{ position:absolute; inset:0;
  background:
    repeating-linear-gradient(135deg, hsla(var(--ghue,28),55%,60%,.16) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 9px),
    radial-gradient(120% 90% at 18% 8%, hsla(var(--ghue,28),55%,60%,.05), transparent 60%),
    linear-gradient(160deg, var(--surface-3), var(--surface-2)); }
.gallery-thumb-fill img{ width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.gallery-thumb-label{ position:absolute; left:12px; bottom:10px; z-index:2;
  font-family:var(--mono); font-size:10px; letter-spacing:.04em; color:var(--dim);
  background:rgba(11,13,16,.5); padding:3px 7px; border-radius:var(--r-sm);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
/* hover visit affordance */
.gallery-visit{ position:absolute; inset:0; z-index:3; display:grid; place-items:center;
  background:linear-gradient(180deg, rgba(11,13,16,.1), rgba(11,13,16,.55));
  opacity:0; transition:opacity .2s ease; }
.gallery-visit span{ display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 17px;
  border-radius:var(--r-pill); background:var(--accent); color:var(--accent-ink);
  font-weight:600; font-size:13.5px; transform:translateY(6px); transition:transform .22s cubic-bezier(.2,.8,.2,1);
  box-shadow:0 8px 22px -8px rgba(242,180,65,.6); }
.gallery-card:hover .gallery-visit{ opacity:1; }
.gallery-card:hover .gallery-visit span{ transform:none; }

/* body */
.gallery-body{ padding:14px 15px 15px; display:flex; flex-direction:column; gap:7px; flex:1; }
.gallery-name{ font-size:15px; font-weight:600; letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gallery-tag{ font-size:13px; line-height:1.5; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:39px; }
.gallery-foot{ display:flex; align-items:center; gap:9px; margin-top:auto; padding-top:11px;
  border-top:1px solid var(--line); }
.gallery-cat{ flex:none; height:22px; padding:0 9px; border-radius:var(--r-sm);
  background:var(--surface-3); border:1px solid var(--line-strong); color:var(--muted);
  font-family:var(--mono); font-size:10.5px; font-weight:500; display:inline-flex; align-items:center; }
.gallery-maker{ flex:1 1 auto; min-width:0; font-family:var(--mono); font-size:11.5px; color:var(--dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gallery-time{ flex:none; font-size:11.5px; color:var(--dim); }

/* —— empty ———————————————————————————————————————————————————— */
.explore-empty{ grid-column:1/-1; display:none; flex-direction:column; align-items:center; text-align:center;
  padding:70px 24px; }
.explore-empty.is-on{ display:flex; }
.explore-empty-ico{ width:54px; height:54px; border-radius:14px; display:grid; place-items:center;
  background:var(--surface-2); border:1px solid var(--line-strong); color:var(--dim); margin-bottom:18px; }
.explore-empty h3{ font-size:17px; font-weight:600; margin:0; }
.explore-empty p{ font-size:13.5px; color:var(--muted); margin:8px 0 0; max-width:300px; line-height:1.5; }

/* —— closing band ————————————————————————————————————————————— */
.explore-cta{ position:relative; z-index:1; margin:0 auto 30px; max-width:1100px; padding:0 20px; }
.explore-cta-inner{ position:relative; overflow:hidden; border-radius:var(--r-xl);
  background:var(--surface); border:1px solid var(--line-strong);
  padding:48px 30px; text-align:center; }
.explore-cta-inner::before{ content:''; position:absolute; inset:0; pointer-events:none;
  background:
    repeating-linear-gradient(135deg, rgba(242,180,65,.05) 0 1px, transparent 1px 13px);
  -webkit-mask-image:radial-gradient(80% 120% at 50% 0%, #000, transparent 75%);
          mask-image:radial-gradient(80% 120% at 50% 0%, #000, transparent 75%); }
.explore-cta-inner::after{ content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, transparent, rgba(242,180,65,.7), transparent); }
.explore-cta h2{ position:relative; font-size:clamp(22px,4vw,30px); font-weight:600; letter-spacing:-.02em; margin:0; }
.explore-cta p{ position:relative; font-size:14.5px; color:var(--muted); margin:12px auto 0; max-width:420px; line-height:1.55; }
.explore-cta-btn{ position:relative; display:inline-flex; align-items:center; gap:9px; margin-top:26px;
  height:48px; padding:0 24px; border-radius:var(--r-md); background:var(--accent); color:var(--accent-ink);
  font-weight:600; font-size:15px; text-decoration:none; box-shadow:0 8px 24px -8px rgba(242,180,65,.55);
  transition:background-color .15s, transform .12s; }
.explore-cta-btn:hover{ background:var(--accent-bright); }
.explore-cta-btn:active{ transform:translateY(1px); }

/* —— footer —————————————————————————————————————————————————— */
.explore-footer{ position:relative; z-index:1; border-top:1px solid var(--line);
  padding:24px 20px; text-align:center; color:var(--dim); font-size:12.5px; }

/* —— reduced motion —————————————————————————————————————————— */
@media (prefers-reduced-motion: reduce){
  .explore *, .explore *::before, .explore *::after{ animation:none !important; transition:none !important; }
  .gallery-card:hover{ transform:none; }
  .gallery-card:hover .gallery-visit span{ transform:none; }
}

/* —— responsive ————————————————————————————————————————————— */
@media (max-width:640px){
  .explore-hero{ padding:34px 0 26px; }
  .explore-grid{ grid-template-columns:1fr; gap:14px; }
  .explore-controls-main{ flex-wrap:wrap; }
  .explore-sort{ order:3; width:100%; }
  .explore-sort button{ flex:1; }
  .explore-cta-inner{ padding:38px 22px; }
}
