/* ==========================================================================
   WINHUB Renewal - Works Detail Modern Stylesheet
   File: assets/css/pages/works-detail.css
   Figma 1:1 Reference (node-id=191-564, ABC MART 차세대 POS/SCO Detail)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION & BACK NAVIGATION (Dark Section - Figma 1:1 Frame 31)
   -------------------------------------------------------------------------- */
.wh-works-detail-hero {
  background-color: #151515;
  color: #ffffff;
  padding: clamp(200px, 14vw, 240px) var(--_spacings---site-margin, 2.5rem) 60px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
}

.wh-works-detail-hero__inner {
  max-width: 1802px;
  margin: 0 auto;
  width: 100%;
}

/* Back Arrow & Title Row */
.wh-works-detail-hero__title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.wh-detail-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.wh-detail-back-btn__circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #353535;
  transition: background-color 0.25s ease;
  z-index: 1;
}

.wh-detail-back-btn svg {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
  color: #ffffff;
}

.wh-detail-back-btn:hover .wh-detail-back-btn__circle {
  background-color: #ff7f00;
}

.wh-detail-hero-title {
  font-family: 'Helvetica Now Display', 'Pretendard', Arial, sans-serif;
  font-size: clamp(2rem, 3.8vw, 74px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}

/* Sub-metadata Strip (Figma Frame 61) */
.wh-detail-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0 28px;
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  font-size: 18px;
  line-height: 1.2;
  color: #ffffff;
}

.wh-detail-hero-meta__left {
  text-align: left;
}

.wh-detail-hero-meta__center {
  text-align: center;
}

.wh-detail-hero-meta__right {
  text-align: right;
  letter-spacing: 0.02em;
}

/* Hero Mockup Display Frame (Figma Frame 63) */
.wh-detail-hero-visual {
  width: 100%;
  max-width: 1802px;
  height: clamp(340px, 32vw, 587px);
  border-radius: 8px;
  overflow: hidden;
  background-color: #d9d9d9;
  position: relative;
  margin-top: 10px;
}

.wh-detail-hero-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   2. SECTION S.01: PROJECT OVERVIEW (White Section)
   -------------------------------------------------------------------------- */
.wh-detail-s01 {
  background-color: #ffffff;
  color: #151515;
  padding: 70px var(--_spacings---site-margin, 2.5rem) 60px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
}

.wh-detail-s01__inner {
  max-width: 1836px;
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow Divider Bar */
.wh-detail-divider-bar {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 50px;
  position: relative;
}

.wh-detail-divider-bar::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
  margin-left: 18px;
}

.wh-detail-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1f2937;
  text-transform: uppercase;
  user-select: none;
}

.wh-detail-eyebrow-tag svg {
  width: 14px;
  height: 14px;
  color: #1f2937;
}

/* 2-Column Overview Grid */
.wh-detail-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(40px, 6vw, 110px);
  row-gap: 40px;
  align-items: start;
}

.wh-detail-overview-col {
  display: flex;
  flex-direction: column;
}

.wh-detail-col-title {
  font-family: 'Helvetica Now Display', 'Pretendard', Arial, sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111827;
  margin: 0 0 24px 0;
}

.wh-detail-desc-text {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: #374151;
  margin: 0 0 16px 0;
  word-break: keep-all;
  letter-spacing: -0.015em;
}

.wh-detail-desc-text:last-child {
  margin-bottom: 0;
}

/* Technical Stack Table List */
.wh-tech-stack-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e5e7eb;
}

.wh-tech-stack-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
  line-height: 1.5;
  align-items: baseline;
}

.wh-tech-stack-row:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.wh-tech-label {
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  letter-spacing: -0.01em;
}

.wh-tech-value {
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  font-size: 14px;
  color: #4b5563;
  word-break: break-word;
}

/* 4-Column Metadata Grid */
.wh-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  row-gap: 32px;
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid #e5e7eb;
}

.wh-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wh-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.wh-meta-value {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.6;
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   3. SECTION S.02: SCREENSHOTS (Mockup Showcase)
   -------------------------------------------------------------------------- */
.wh-detail-s02 {
  background-color: #ffffff;
  color: #151515;
  padding: 30px var(--_spacings---site-margin, 2.5rem) 120px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
}

.wh-detail-s02__inner {
  max-width: 1836px;
  margin: 0 auto;
  width: 100%;
}

/* Large Rounded Mockup Frame */
.wh-detail-showcase-box {
  background-color: #F3F4F6;
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.wh-detail-showcase-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-detail-showcase-box:hover .wh-detail-showcase-img {
  transform: scale(1.02);
}

/* Description Area Below Mockups */
.wh-detail-showcase-desc {
  max-width: 780px;
  margin: 56px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wh-detail-showcase-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wh-detail-showcase-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #111827;
  margin: 0 0 18px 0;
  word-break: keep-all;
}

.wh-detail-showcase-p {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #4b5563;
  margin: 0;
  word-break: keep-all;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   4. BOTTOM PROJECT NAVIGATION (Figma 1:1 Frame 30)
   -------------------------------------------------------------------------- */
.wh-detail-bottom-nav {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}

.wh-detail-bottom-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1802px;
  height: 116px;
  margin: 0 auto;
  padding: 0 var(--_spacings---site-margin, 2.5rem);
}

.wh-detail-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #151515;
  text-decoration: none;
  transition: all 0.25s ease;
  user-select: none;
  padding: 10px 16px;
}

.wh-detail-nav-btn:hover {
  color: #ff7f00;
}

.wh-detail-nav-btn__arrow {
  width: 12px;
  height: 24px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.wh-detail-nav-btn.is-prev:hover .wh-detail-nav-btn__arrow {
  transform: translateX(-4px);
}

.wh-detail-nav-btn.is-next:hover .wh-detail-nav-btn__arrow {
  transform: translateX(4px);
}

.wh-detail-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 10.6px);
  grid-template-rows: repeat(2, 10.6px);
  gap: 2.6px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.wh-detail-nav-grid__sq {
  width: 10.6px;
  height: 10.6px;
  background-color: #c4c4c4;
  border-radius: 1px;
  transition: background-color 0.25s ease;
}

.wh-detail-nav-grid:hover {
  transform: scale(1.12);
}

.wh-detail-nav-grid:hover .wh-detail-nav-grid__sq {
  background-color: #151515;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .wh-works-detail-hero {
    padding-top: clamp(170px, 16vw, 200px);
  }

  .wh-detail-overview-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .wh-detail-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
}

@media screen and (max-width: 767px) {
  .wh-works-detail-hero {
    padding-top: 140px;
    padding-bottom: 32px;
  }

  .wh-detail-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wh-detail-s01 {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .wh-detail-divider-bar {
    margin-bottom: 36px;
  }

  .wh-detail-divider-bar::after {
    margin-left: 10px;
  }

  .wh-detail-meta-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
  }

  .wh-tech-stack-row {
    grid-template-columns: 110px 1fr;
  }

  .wh-detail-s02 {
    padding-bottom: 80px;
  }

  .wh-detail-showcase-box {
    border-radius: 16px;
    padding: 1.5rem 1rem;
  }

  .wh-detail-showcase-desc {
    margin-top: 36px;
  }

  .wh-detail-bottom-nav {
    padding: 24px var(--_spacings---site-margin, 2.5rem);
  }
}