/*
Theme Name: BOGU Design
Theme URI: https://bogu.design
Author: BOGU Design Studio
Description: Premium WordPress theme for BOGU Design studio.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: bogu-design
*/

/* ═══════════════════════════════════════════════════════════════
   SHOWCASE — vertical stack, image top, text bottom
   Overlay: always visible → reveal on hover → restore on leave
   ═══════════════════════════════════════════════════════════════ */

.showcase {
  display: block;
  border-top: 1px solid rgba(10,10,10,.07);
  background: var(--white);
}

.showcase--light {
  background: #faf8f6;
  border-top-color: rgba(10,10,10,.04);
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE BLOCK
   ═══════════════════════════════════════════════════════════════ */

.showcase-image {
  position: relative;
  width: 100%;
  height: clamp(380px, 62vh, 780px);
  overflow: hidden;
  display: block;
}

/* ─── Browser chrome ─────────────────────────────────────────── */

.sc-browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sc-browser-bar--light {
  background: #d8d0c8;
  border-bottom-color: rgba(10,10,10,.08);
}

.sc-dots { display: flex; gap: 5px; flex-shrink: 0; }
.sc-dot-r { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.sc-dot-y { width: 9px; height: 9px; border-radius: 50%; background: #febc2e; }
.sc-dot-g { width: 9px; height: 9px; border-radius: 50%; background: #28c840; }

.sc-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,.32);
  letter-spacing: .04em;
}

.sc-browser-bar--light .sc-url-bar {
  background: rgba(10,10,10,.08);
  color: rgba(10,10,10,.38);
}

.sc-open-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2px;
  transition: color .25s, background .25s, border-color .25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.sc-browser-bar--light .sc-open-btn {
  color: rgba(10,10,10,.38);
  border-color: rgba(10,10,10,.14);
}

.sc-open-btn:hover {
  color: var(--black);
  background: var(--white);
  border-color: transparent;
}

/* ─── Screenshot image ───────────────────────────────────────── */

.showcase-img {
  position: absolute;
  top: 36px; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: calc(100% - 36px);
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Scroll-in: starts enlarged */
  transform: scale(1.06);
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1) .1s;
  will-change: transform;
}

.showcase.sc-in .showcase-img {
  transform: scale(1);
}

/* Hover zoom — only when overlay is gone */
.showcase-image:hover .showcase-img {
  transform: scale(1.04);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── OVERLAY — always on, reveal on hover, restore on leave ─── */

.showcase-overlay {
  position: absolute;
  top: 36px; left: 0; right: 0; bottom: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.75) 45%,
    rgba(0,0,0,.88) 100%
  );
  /* Always starts visible */
  opacity: 1;
  /* Reveal on hover: fast out */
  transition: opacity .55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover → overlay disappears (image reveals) */
.showcase-image:hover .showcase-overlay {
  opacity: 0;
  transition: opacity .55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mouse leave → overlay comes back (restore) */
/* Default state IS the restored state — no extra rule needed */

/* Light variant */
.showcase--light .showcase-overlay {
  background: linear-gradient(
    170deg,
    rgba(220,212,200,.99) 0%,
    rgba(220,212,200,.88) 45%,
    rgba(220,212,200,.92) 100%
  );
}

/* ─── Label inside image (visible through overlay) ───────────── */

.showcase-img-label {
  position: absolute;
  top: 52px; left: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  /* Scroll-in animation */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease-out) .55s,
              transform .7s var(--ease-out) .55s;
  pointer-events: none;
}

.showcase--light .showcase-img-label {
  color: rgba(10,10,10,.52);
}

.showcase.sc-in .showcase-img-label {
  opacity: 1;
  transform: none;
}

/* Hide label when image is being revealed on hover */
.showcase-image:hover .showcase-img-label {
  opacity: 0;
  transition: opacity .25s ease;
}

/* ─── Live dot (green pulse) ─────────────────────────────────── */

.sc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  flex-shrink: 0;
  animation: scDotPulse 2.5s ease-in-out infinite;
}

@keyframes scDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40,200,64,.55); }
  50%       { box-shadow: 0 0 0 6px rgba(40,200,64,0); }
}

/* ─── Large number in image corner ──────────────────────────── */

.showcase-num {
  position: absolute;
  bottom: 16px; right: 28px;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: rgba(255,255,255,.13);
  pointer-events: none;
  user-select: none;
  transition: color .9s ease, opacity .9s ease;
  opacity: 0;
}

.showcase--light .showcase-num {
  color: rgba(10,10,10,.08);
}

.showcase.sc-in .showcase-num {
  opacity: 1;
}

/* Hide num on hover (image reveals) */
.showcase-image:hover .showcase-num {
  opacity: 0;
  transition: opacity .3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   TEXT BODY — centred, max-width, two columns
   ═══════════════════════════════════════════════════════════════ */

.showcase-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 56px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}

/* Left — title + description */
.showcase-body-left {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out) .18s,
              transform .9s var(--ease-out) .18s;
}

.showcase.sc-in .showcase-body-left {
  opacity: 1;
  transform: none;
}

.showcase-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-bottom: 22px;
}

/* Live dot in text eyebrow */
.showcase-eyebrow .sc-live-dot {
  flex-shrink: 0;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 80px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.025em;
  margin-bottom: 28px;
  color: var(--black);
}

.showcase-title em { font-style: italic; }

.showcase-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--grey-dark);
  line-height: 1.82;
  max-width: 420px;
}

/* Right — specs, CTA, tags */
.showcase-body-right {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out) .32s,
              transform .9s var(--ease-out) .32s;
}

.showcase.sc-in .showcase-body-right {
  opacity: 1;
  transform: none;
}

.showcase-specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(10,10,10,.08);
  margin-bottom: 44px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(10,10,10,.06);
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.spec-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--black);
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.showcase-demo-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.showcase-demo-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--black);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.showcase-demo-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.showcase-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(10,10,10,.12);
  color: var(--grey-dark);
  transition: border-color .3s, color .3s;
}

.sc-tag:hover { border-color: rgba(10,10,10,.3); color: var(--black); }

/* ═══════════════════════════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════════════════════════ */

.showcase-divider {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.showcase-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(10,10,10,.08);
}

.showcase-divider__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(10,10,10,.2);
  white-space: nowrap;
}

/* ─── Browse all ─────────────────────────────────────────────── */

.showcase-all-link {
  text-align: center;
  padding: 64px 56px 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

.showcase-all-link.sc-in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Large laptop */
@media (max-width: 1100px) {
  .showcase-body { padding: 56px 48px 72px; gap: 56px; }
  .showcase-image { height: clamp(340px, 56vh, 680px); }
}

/* Tablet landscape — single column */
@media (max-width: 900px) {
  .showcase-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 40px 64px;
  }
  .showcase-image {
    height: clamp(280px, 50vw, 520px);
  }
  .showcase-desc { max-width: 100%; }

  /* Immediately visible on touch */
  .showcase-body-left,
  .showcase-body-right,
  .showcase-img-label,
  .showcase-num { opacity: 1; transform: none; }

  .showcase-img { transform: scale(1); }

  /* On touch: overlay is fully visible, no hover interaction */
  .showcase-overlay { opacity: 1 !important; }
  .showcase-image:hover .showcase-overlay { opacity: 1 !important; }
  .showcase-image:hover .showcase-img { transform: scale(1) !important; }
  .showcase-image:hover .showcase-img-label { opacity: 1 !important; }

  .showcase-divider { padding: 0 40px; }
  .showcase-all-link { padding: 48px 40px 64px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .showcase-body { padding: 40px 28px 56px; gap: 36px; }
  .showcase-image { height: clamp(240px, 52vw, 440px); }
  .showcase-title { font-size: clamp(36px, 8.5vw, 56px); }
  .showcase-desc { font-size: 14px; line-height: 1.78; }
  .sc-browser-bar { padding: 8px 14px; }
  .sc-url-bar { font-size: 9px; padding: 4px 10px; }
  .sc-dot-r, .sc-dot-y, .sc-dot-g { width: 7px; height: 7px; }
  .showcase-num { font-size: 64px; right: 20px; }
  .showcase-divider { padding: 0 28px; }
  .showcase-all-link { padding: 40px 28px 56px; }
}

/* Mobile */
@media (max-width: 600px) {
  .showcase-body { padding: 32px 20px 48px; gap: 28px; }
  .showcase-image { height: 58vw; min-height: 220px; }
  .showcase-title { font-size: clamp(32px, 9vw, 48px); }
  .showcase-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .showcase-eyebrow { font-size: 8px; }
  .showcase-num { display: none; }
  .showcase-divider { padding: 0 20px; }
  .showcase-all-link { padding: 36px 20px 48px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .showcase-body { padding: 28px 16px 40px; }
  .showcase-image { height: 62vw; min-height: 200px; }
  .showcase-title { font-size: clamp(28px, 9.5vw, 44px); }
  .sc-browser-bar { padding: 7px 12px; gap: 8px; }
  .sc-open-btn { padding: 3px 8px; font-size: 8px; }
  .showcase-divider { padding: 0 16px; }
  .showcase-all-link { padding: 32px 16px 40px; }
}

/* Touch devices — disable hover-dependent overlay reveal */
@media (hover: none) {
  .showcase-overlay { opacity: 1 !important; }
  .showcase-image:hover .showcase-overlay { opacity: 1 !important; }
  .showcase-image:hover .showcase-img { transform: scale(1) !important; transition: none !important; }
}