/* ─── Showcase page ────────────────────────────────────────────────────────── */
.showcase-dotfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.showcase-page {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 180px 2em 4em;
  min-height: 100vh;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */
.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 3em;
}

.showcase-header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(36px, 5vw, 100px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.showcase-subtitle {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  max-width: 32ch;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.showcase-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  height: 42px;
  padding: 0 24px;
  width: fit-content;
  flex-shrink: 0;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-ghost);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.2),
    var(--surface-ghost-highlight);
  transition: background 0.2s ease;
  text-decoration: none;
}

.showcase-submit-btn:hover {
  background: var(--surface-ghost-hover);
}

/* ─── Grid ─────────────────────────────────────────────────────────────────── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ─── Card (matches ComponentList) ─────────────────────────────────────────── */
.showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated, #1a1625);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 6px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.showcase-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.showcase-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.showcase-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-card-img {
  transform: scale(1.03);
}

.showcase-card-info {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px;
  gap: 2px;
}

.showcase-card-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.showcase-card-using {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .showcase-page {
    padding: 100px 1em 3em;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .showcase-submit-btn {
    margin-top: 0;
  }
}

/* ─── Light theme ─────────────────────────────────────────────────────────── */
:root[data-theme='light'] .showcase-dotfield {
  opacity: 0.3;
}

:root[data-theme='light'] .showcase-title {
  color: var(--text-primary);
}

:root[data-theme='light'] .showcase-subtitle,
:root[data-theme='light'] .showcase-card-using {
  color: var(--text-dimmed);
}

:root[data-theme='light'] .showcase-submit-btn {
  border-color: var(--border-subtle);
  background: #fff;
  box-shadow: none;
  color: var(--text-primary);
  font-family: 'Geist', sans-serif;
}

:root[data-theme='light'] .showcase-submit-btn:hover {
  border-color: var(--border-primary);
  background: #fafafa;
}

:root[data-theme='light'] .showcase-card {
  border-color: var(--border-subtle);
  background: #fff;
}

:root[data-theme='light'] .showcase-card:hover {
  border-color: var(--border-primary);
}

:root[data-theme='light'] .showcase-card-media {
  border: 1px solid var(--preview-border);
}

:root[data-theme='light'] .showcase-card-name {
  color: var(--text-primary);
}