/**
 * MONOBUILD 서브페이지 공통 스타일 — 다크 이머시브 테마
 * 수정일: 2026-06-02 10:47 (KST)
 * 용도: about.php, product.php 등 서브 페이지 본문 다크 전환
 * 기존 Tailwind 유틸리티 색상 오버라이드 + 다크 카드/히어로/CTA/prose
 */

/* ══════════════════════════════════════════
   서브페이지 공통 래퍼 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.sub-page {
  padding-top: var(--navbar-height);
  background: var(--background);
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   서브 히어로 배너 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.sub-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--container-padding);
  text-align: center;
  background: #111;
}

.sub-hero::before {
  content: '';
  position: absolute;
  inset: -10%; /* margin for scaling */
  background-image: url('/images/sub_hero_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: hero-pan 30s infinite alternate linear;
}

@keyframes hero-pan {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 2%); }
}

.sub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.3) 0%, var(--background) 100%);
  pointer-events: none;
  z-index: 1;
}

.sub-hero > * {
  position: relative;
  z-index: 2;
}

.sub-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.sub-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--fw-black);
  color: var(--foreground);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
}

.sub-hero__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* ══════════════════════════════════════════
   다크 카드 컴포넌트 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.dark-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  transition: all var(--transition-smooth);
}

.dark-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.dark-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.dark-card__icon--blue {
  background: rgba(59,130,246,0.08);
  color: var(--primary);
}

.dark-card__icon--green {
  background: rgba(16,185,129,0.08);
  color: #10B981;
}

.dark-card__icon--amber {
  background: rgba(245,158,11,0.08);
  color: #F59E0B;
}

.dark-card__icon--violet {
  background: rgba(139,92,246,0.08);
  color: #8B5CF6;
}

.dark-card__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--foreground);
  margin-bottom: var(--space-sm);
}

.dark-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.dark-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--primary);
  margin-top: var(--space-lg);
  transition: color var(--transition-fast);
}

.dark-card__link:hover {
  color: var(--foreground);
}

/* ══════════════════════════════════════════
   그리드 레이아웃 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.sub-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
}

.sub-grid__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-extrabold);
  color: var(--foreground);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.sub-grid__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.sub-grid__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .sub-grid__cols { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   스펙 테이블 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.spec-table {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
}

.spec-table__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--foreground);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.spec-table__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: var(--text-sm);
}

.spec-table__row:last-child {
  border-bottom: none;
}

.spec-table__label {
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}

.spec-table__value {
  font-weight: var(--fw-bold);
  color: var(--foreground);
  text-align: right;
}

/* ══════════════════════════════════════════
   피처 뱃지 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.feature-badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--transition-fast);
}

.feature-badge:hover {
  border-color: var(--primary);
}

.feature-badge__title {
  font-size: var(--text-sm);
  font-weight: var(--fw-extrabold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-badge__title--blue { color: var(--primary); }
.feature-badge__title--green { color: #10B981; }

.feature-badge__desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   AI 위젯 섹션 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.ai-widget-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-3xl) var(--container-padding);
}

.ai-widget-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ai-widget-frame {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.ai-widget-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════
   프로젝트 상세 히어로 — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.project-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 80px var(--container-padding) 60px;
  background: #0a0a0a;
  color: #fff;
}

.project-detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.project-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0a0a0a, rgba(10,10,10,0.4), transparent);
}

.project-detail-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  align-items: flex-end;
  justify-content: space-between;
}

.project-detail-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  max-width: 600px;
}

.project-detail-hero__cat {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.project-detail-hero__meta {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-md);
}

/* 자재 정보 글래스 카드 — 수정일: 2026-06-02 10:47 (KST) */
.project-mat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  min-width: 280px;
}

.project-mat-card__title {
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.project-mat-card__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.project-mat-card__label { color: rgba(255,255,255,0.5); }
.project-mat-card__value { color: #fff; font-weight: var(--fw-medium); }

/* ══════════════════════════════════════════
   프로젝트 본문 영역 (갤러리/개요) — 수정일: 2026-06-02 10:47 (KST)
   ══════════════════════════════════════════ */
.project-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
}

.project-body__heading {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--foreground);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
}

.project-body__heading::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--foreground);
  margin-right: var(--space-md);
  flex-shrink: 0;
}

/* 다크 Prose — 수정일: 2026-06-02 10:47 (KST) */
.dark-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.dark-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--text-muted);
}

.dark-prose p {
  margin-bottom: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.dark-prose ul, .dark-prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.dark-prose li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.dark-prose strong, .dark-prose b {
  font-weight: 600;
  color: var(--text-primary);
}

.dark-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.dark-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dark-prose a:hover { color: var(--foreground); }

/* 다크 갤러리 매시너리 — 수정일: 2026-06-02 10:47 (KST) */
.dark-masonry {
  column-count: 2;
  column-gap: 1.5rem;
}

.dark-masonry__item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 8px;
  transition: border-color var(--transition-fast);
}

.dark-masonry__item:hover {
  border-color: rgba(255,255,255,0.12);
}

.dark-masonry__item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.dark-masonry__item video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  background: #000;
}

@media (max-width: 768px) {
  .dark-masonry { column-count: 1; }
}

/* 해시태그 — 수정일: 2026-06-02 10:47 (KST) */
.dark-tag {
  font-size: var(--text-sm);
  color: var(--primary);
  background: rgba(59,130,246,0.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-medium);
}

/* 거리뷰 카드 — 수정일: 2026-06-02 10:47 (KST) */
.streetview-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.streetview-card__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.streetview-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.streetview-card__btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--foreground);
}

/* 텍스처 카드 — 수정일: 2026-06-02 10:47 (KST) */
.texture-detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: inline-block;
  width: 256px;
  flex-shrink: 0;
}

.texture-detail-card img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
}

.texture-detail-card__label {
  text-align: center;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

@media (min-width: 768px) {
  .texture-detail-card {
    width: 320px;
  }
  .texture-detail-card img { height: 320px; }
}

/* ══════════════════════════════════════════
   내비게이션 바 — 수정일: 2026-06-02 10:47 (KST)
   프로젝트 상세 전용 (기존 sticky 해더 대체)
   ══════════════════════════════════════════ */
.project-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 var(--container-padding);
}

.project-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-nav__back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.project-nav__back:hover { color: var(--foreground); }

.project-nav__back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* 스크롤바 다크 — 수정일: 2026-06-02 10:47 (KST) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
