/* Static /explore gallery — clean white stage, brand-blue accents */

.fgs-hero--page.fgs-hero--explore {
  padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 48px));
  padding-bottom: clamp(8px, 2vw, 16px);
  display: flex;
  justify-content: center;
}

.fgs-hero--page.fgs-hero--explore > .fgs-container {
  display: flex;
  justify-content: center;
}

.fgs-hero--page.fgs-hero--explore .fgs-hero__glow {
  display: none !important;
}

.fgs-hero--page.fgs-hero--explore .fgs-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}

.fgs-hero--page.fgs-hero--explore .fgs-h1,
.fgs-hero--page.fgs-hero--explore .fgpm-hero-title {
  margin: 0 auto 14px;
  width: auto;
  max-width: 18ch;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  letter-spacing: -0.035em;
}

.fgs-hero--page.fgs-hero--explore .fgs-lead,
.fgs-hero--page.fgs-hero--explore .fgpm-hero-lead {
  margin: 0 auto;
  width: auto;
  max-width: 46ch;
  white-space: normal;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: #5c5952;
}

.fg-explore__meta {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft, #8c8983);
  letter-spacing: -0.01em;
}

.fg-explore {
  --fgx-ease: cubic-bezier(0.23, 1, 0.32, 1);
  padding: 8px 0 88px;
  position: relative;
}

.fg-explore__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  padding: 12px;
  border: 1px solid rgba(13, 12, 10, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px -24px rgba(13, 12, 10, 0.18);
}

.fg-explore__search {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 44px;
  border: 1px solid rgba(13, 12, 10, 0.1);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s var(--fgx-ease), box-shadow 0.2s var(--fgx-ease);
}

.fg-explore__search:focus-within {
  border-color: color-mix(in srgb, var(--brand-blue, #0a6cff) 45%, #e6e4df);
  box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.12);
}

.fg-explore__search svg {
  flex: none;
  color: var(--text-soft, #8c8983);
}

.fg-explore__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink, #0d0c0a);
}

.fg-explore__search input::placeholder {
  color: var(--text-soft, #8c8983);
}

.fg-explore__rails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fg-explore__rail {
  appearance: none;
  border: 1px solid rgba(13, 12, 10, 0.1);
  background: #fff;
  color: var(--text-muted, #5c5952);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s var(--fgx-ease),
    color 0.2s var(--fgx-ease),
    border-color 0.2s var(--fgx-ease),
    box-shadow 0.2s var(--fgx-ease);
}

.fg-explore__rail:hover {
  border-color: rgba(13, 12, 10, 0.22);
  color: var(--ink, #0d0c0a);
}

.fg-explore__rail.is-active {
  background: linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
  border-color: rgba(10, 108, 255, 0.35);
  color: var(--brand-blue, #0a6cff);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 16px -12px rgba(10, 108, 255, 0.35);
}

.fg-explore__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fg-explore__grid[hidden],
.fg-explore__skeleton[hidden],
.fg-explore__status[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .fg-explore__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fg-explore__grid {
    grid-template-columns: 1fr;
  }
}

.fg-explore__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6e4df;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px -20px rgba(13, 12, 10, 0.14);
  transition:
    transform 0.28s var(--fgx-ease),
    box-shadow 0.28s var(--fgx-ease),
    border-color 0.28s var(--fgx-ease);
}

.fg-explore__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-blue, #0a6cff) 35%, #e6e4df);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 44px -22px rgba(10, 108, 255, 0.18);
}

.fg-explore__cover {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f3f2ee 0%, #e8eef8 100%);
  overflow: hidden;
  position: relative;
}

.fg-explore__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--fgx-ease);
}

.fg-explore__card:hover .fg-explore__cover img {
  transform: scale(1.03);
}

.fg-explore__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-blue, #0a6cff);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 108, 255, 0.18);
  box-shadow: 0 6px 14px -8px rgba(13, 12, 10, 0.25);
}

.fg-explore__badge--hot {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.22);
}

/* CSS phone preview when no cover image */
.fg-explore__phone {
  position: absolute;
  inset: 14% auto 8%;
  left: 50%;
  width: min(42%, 148px);
  transform: translateX(-50%) rotate(-6deg);
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(13, 12, 10, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 28px -14px rgba(13, 12, 10, 0.28);
  overflow: hidden;
  transition: transform 0.35s var(--fgx-ease);
}

.fg-explore__card:hover .fg-explore__phone {
  transform: translateX(-50%) rotate(-2deg) translateY(-4px);
}

.fg-explore__phone-island {
  width: 38%;
  height: 7px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #e8e6e1;
}

.fg-explore__phone-body {
  padding: 10px 10px 12px;
  display: grid;
  gap: 7px;
}

.fg-explore__phone-title {
  height: 8px;
  width: 62%;
  border-radius: 4px;
  background: #d9d6cf;
}

.fg-explore__phone-hero {
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8f1ff, #dce9ff);
}

.fg-explore__phone-row {
  height: 8px;
  border-radius: 4px;
  background: #eceae4;
}

.fg-explore__phone-row:nth-child(4) { width: 78%; }
.fg-explore__phone-row:nth-child(5) { width: 54%; }

.fg-explore__phone--mint .fg-explore__phone-hero {
  background: linear-gradient(145deg, #e8f8f1, #d4f0e4);
}
.fg-explore__phone--warm .fg-explore__phone-hero {
  background: linear-gradient(145deg, #fff1e8, #ffe0cc);
}
.fg-explore__phone--violet .fg-explore__phone-hero {
  background: linear-gradient(145deg, #f1ecff, #e3dbff);
}
.fg-explore__phone--sand .fg-explore__phone-hero {
  background: linear-gradient(145deg, #f7f1e6, #efe4d2);
}

.fg-explore__cover--mint { background: linear-gradient(160deg, #f2faf6, #e8eef8); }
.fg-explore__cover--warm { background: linear-gradient(160deg, #fff7f1, #f3f2ee); }
.fg-explore__cover--violet { background: linear-gradient(160deg, #f7f4ff, #eef2f8); }
.fg-explore__cover--sand { background: linear-gradient(160deg, #faf6ef, #eef1f6); }
.fg-explore__cover--sky { background: linear-gradient(160deg, #eef6ff, #f4f2ee); }

.fg-explore__cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(13, 12, 10, 0.28);
}

.fg-explore__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fg-explore__cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue, #0a6cff);
}

.fg-explore__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink, #0d0c0a);
}

.fg-explore__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted, #5c5952);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fg-explore__stats {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft, #8c8983);
}

.fg-explore__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fg-explore__stat svg {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

.fg-explore__empty,
.fg-explore__status {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-muted, #5c5952);
  font-size: 1rem;
  border: 1px dashed rgba(13, 12, 10, 0.14);
  border-radius: 20px;
  background: #fafaf8;
}

.fg-explore__skeleton {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .fg-explore__skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fg-explore__skeleton {
    grid-template-columns: 1fr;
  }
}

.fg-explore__skel {
  border-radius: 20px;
  border: 1px solid rgba(13, 12, 10, 0.08);
  background: #fff;
  overflow: hidden;
  min-height: 300px;
}

.fg-explore__skel-cover {
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #eceff4 0%, #f7f8fb 50%, #eceff4 100%);
  background-size: 200% 100%;
  animation: fg-explore-shimmer 1.2s ease-in-out infinite;
}

.fg-explore__skel-line {
  height: 12px;
  margin: 14px 16px;
  border-radius: 6px;
  background: #eceff4;
}

.fg-explore__skel-line--short {
  width: 55%;
}

@keyframes fg-explore-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Soft bottom CTA — no blue wash band */
.fg-explore-cta {
  margin-top: 56px;
  padding: 36px 28px;
  border-radius: 24px;
  border: 1px solid #e6e4df;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(10, 108, 255, 0.06), transparent 55%),
    #fff;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px -28px rgba(13, 12, 10, 0.2);
}

.fg-explore-cta h2 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink, #0d0c0a);
}

.fg-explore-cta p {
  margin: 0 auto 20px;
  max-width: 40ch;
  color: var(--text-muted, #5c5952);
  line-height: 1.5;
}

.fg-explore-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .fg-explore__card,
  .fg-explore__rail,
  .fg-explore__skel-cover,
  .fg-explore__phone,
  .fg-explore__cover img {
    transition: none;
    animation: none;
  }
}
