/* ═══════════════════════════════════════════════════════════
   CASE STUDY / FEATURED SHOWCASE CARDS
   Append these rules to the END of public/assets/css/style.css
   Do NOT replace the existing file — just paste below all existing CSS.
═══════════════════════════════════════════════════════════ */

/* ── Case study card base ── */
.gallery-item.gallery-case-study {
  grid-row: span 2;       /* naturally taller — shows more content */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.35) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 50px rgba(212,175,55,0.07);
  cursor: pointer;
  background: #06142b;
}

.gallery-item.gallery-case-study .cs-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gallery-item.gallery-case-study .cs-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: brightness(0.72) saturate(0.85);
  transition: transform 0.6s var(--ease-out), filter 0.5s ease;
}
.gallery-item.gallery-case-study:hover .cs-image-wrap img {
  transform: scale(1.05);
  filter: brightness(0.55) saturate(0.75);
}

/* ── Gradient overlay ── */
.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,20,43,0.97)  0%,
    rgba(6,20,43,0.72)  40%,
    rgba(6,20,43,0.22)  70%,
    rgba(6,20,43,0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  z-index: 2;
}

/* ── Top badges ── */
.cs-badges {
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}
.cs-featured-badge {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #d4af37;
  color: #06142b;
  padding: 4px 10px;
  border-radius: 2px;
}
.cs-year-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  background: rgba(6,20,43,0.7);
  border: 1px solid rgba(212,175,55,0.4);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Card content ── */
.cs-category-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.8);
  margin-bottom: 0.5rem;
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.cs-caption {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

/* ── Highlight bullets — hidden by default, slide up on hover ── */
.cs-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease;
  margin-bottom: 0;
}
.gallery-item.gallery-case-study:hover .cs-highlights,
.gallery-item.gallery-case-study.touch-open .cs-highlights {
  max-height: 220px;
  opacity: 1;
  margin-bottom: 1rem;
}
.cs-highlights li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}
.cs-highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.58em;
  width: 5px; height: 1px;
  background: #d4af37;
}

/* ── CTA button — slides up on hover ── */
.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d4af37;
  color: #06142b;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  width: fit-content;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s var(--ease-out) 0.05s, background 0.22s;
  pointer-events: none;
}
.gallery-item.gallery-case-study:hover .cs-cta,
.gallery-item.gallery-case-study.touch-open .cs-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cs-cta:hover { background: #e8c860; }

/* ── Gold accent line at bottom ── */
.gallery-item.gallery-case-study::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item.gallery-case-study:hover::after { opacity: 1; }

/* ── Mobile touch open ── */
.gallery-item.gallery-case-study.touch-open .cs-overlay {
  background: linear-gradient(to top, rgba(6,20,43,0.99) 0%, rgba(6,20,43,0.85) 50%, rgba(6,20,43,0.3) 100%);
}

/* ═══════════════════════════════════════════════════════════
   SHOWCASE PAGE — /gallery-showcase
   Dedicated full-page layout for all case studies
═══════════════════════════════════════════════════════════ */
.showcase-hero {
  padding: clamp(3rem,7vw,5rem) 0 2rem;
}
.showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.showcase-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(10,20,40,0.6);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.showcase-card:hover {
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 60px rgba(212,175,55,0.07);
  transform: translateY(-3px);
}
.showcase-card:nth-child(even) { direction: rtl; }
.showcase-card:nth-child(even) > * { direction: ltr; }

.showcase-img {
  position: relative;
  overflow: hidden;
}
.showcase-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: transform 0.6s var(--ease-out);
}
.showcase-card:hover .showcase-img img { transform: scale(1.04); }
.showcase-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,20,43,0.4) 0%, transparent 60%);
}
.showcase-year {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
  background: rgba(6,20,43,0.85);
  border: 1px solid rgba(212,175,55,0.35);
  padding: 5px 12px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
}

.showcase-body {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.showcase-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.showcase-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #d4af37;
  color: #06142b;
  padding: 3px 9px;
  border-radius: 2px;
}
.showcase-category {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
}
.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
}
.showcase-caption {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.75;
}
.showcase-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.showcase-highlights li {
  font-size: 0.85rem;
  color: var(--body-text);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.showcase-highlights li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 1.5px;
  background: #d4af37;
}
.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d4af37;
  color: #06142b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 3px;
  width: fit-content;
  margin-top: 0.5rem;
  transition: background 0.22s, transform 0.22s;
}
.showcase-cta:hover { background: #e8c860; transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .showcase-card { grid-template-columns: 1fr; direction: ltr !important; }
  .showcase-card:nth-child(even) { direction: ltr; }
  .showcase-img { height: 220px; }
  .showcase-body { padding: 1.5rem; }
  .showcase-title { font-size: 1.35rem; }
  /* Case study card full width on mobile */
  .gallery-item.gallery-case-study { grid-row: span 1; grid-column: span 1; }
  .gallery-full-grid .gallery-item.gallery-case-study { grid-row: span 2; }
}
@media (max-width: 540px) {
  .cs-title { font-size: 1.1rem; }
  .showcase-body { padding: 1.25rem; }
}
