/* ============================================================
   showcase.css — ToolsMingo Showcase Page Styles
   ============================================================ */

/* ── RESET & BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0d0f0e;
  color: #f1efe9;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 64, 26, .85);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ── HERO ── */
.hero {
  text-align: center;
  padding: clamp(80px, 12vw, 120px) clamp(20px, 5vw, 40px) clamp(40px, 6vw, 60px);
  background: radial-gradient(circle at 50% -5%, rgba(200, 64, 26, .12), transparent 45%);
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c8401a;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #f6f4ee;
  margin-bottom: 14px;
}

.hero p {
  font-size: clamp(14px, 1.6vw, 16px);
  color: #7e7c76;
  max-width: 46ch;
  margin: 0 auto 28px;
}

.hero-cta {
  display: inline-block;
  background: #c8401a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  transition: background .18s;
}

.hero-cta:hover {
  background: #d94d20;
}


/* ── GALLERY WRAP ── */
.gallery-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) clamp(20px, 5vw, 40px);
}


/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}

.filter-bar span {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: #4a4845;
  margin-right: 4px;
}

.filter-btn {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: #7e7c76;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s;
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, .2);
  color: #f1efe9;
}

.filter-btn.active {
  background: #c8401a;
  border-color: #c8401a;
  color: #fff;
}


/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111310;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .5);
  border-color: rgba(255, 255, 255, .14);
}

.gallery-img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #0a0c0a;
}


/* ── SKELETON LOADING ── */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #4a4845;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}

.gallery-empty p {
  margin-top: 14px;
  line-height: 1.7;
}

.skeleton {
  background: linear-gradient(90deg, #141614 25%, #1c1e1c 50%, #141614 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4/3;
}

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}


/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 80px rgba(0, 0, 0, .8);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .2);
}


/* ── SHOWCASE CTA ── */
.showcase-cta {
  text-align: center;
  padding: clamp(60px, 8vw, 90px) clamp(20px, 5vw, 40px);
}

.showcase-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: #f6f4ee;
  margin-bottom: 12px;
}

.showcase-cta p {
  font-size: 14px;
  color: #6a6865;
  margin-bottom: 28px;
}

.showcase-cta a {
  display: inline-block;
  background: #c8401a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background .18s;
}

.showcase-cta a:hover {
  background: #d94d20;
}


/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (max-width: 360px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}