/* ================================================
   ZZL — Terminal UI Design System
   ================================================ */

:root {
  --forest-black: #0A0B0A;
  --zzl-lime:     #D4FF00;
  --muted-gray:   #333333;
  --border-color: rgba(255,255,255,0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  background-color: var(--forest-black);
  color: #fff;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
  letter-spacing: -0.02em;
}

/* ── 그리드 라인 배경 ── */
.grid-lines {
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── 타이포그래피 ── */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── ZZL 로고 (데스크톱: 가로 한줄) ── */
.zzl-logo-large {
  font-weight: 900;
  line-height: 0.82;
  font-size: clamp(5rem, 18vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
  transition: all 0.5s ease;
  user-select: none;
}
.zzl-logo-large span {
  color: var(--zzl-lime);
  -webkit-text-stroke: 0;
}

/* ── ZZL 로고 (모바일: 3줄) ── */
.zzl-logo-stacked {
  font-weight: 900;
  line-height: 0.88;
  font-size: clamp(4.5rem, 22vw, 6rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
  user-select: none;
}
.zzl-logo-stacked span {
  color: var(--zzl-lime);
  -webkit-text-stroke: 0;
}

/* ── 버튼 ── */
.btn-zzl {
  background: transparent;
  border: 1px solid var(--zzl-lime);
  color: var(--zzl-lime);
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}
.btn-zzl:hover {
  background: var(--zzl-lime);
  color: var(--forest-black);
  box-shadow: 0 0 24px rgba(212,255,0,0.4);
}

.btn-zzl-fill {
  background: var(--zzl-lime);
  color: var(--forest-black);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  cursor: pointer;
  transition: 0.2s;
}
.btn-zzl-fill:hover { filter: brightness(1.1); }

/* ── 카드 ── */
.card-frame {
  border: 1px solid var(--muted-gray);
  position: relative;
  transition: border-color 0.3s;
}
.card-frame:hover { border-color: var(--zzl-lime); }

/* ── 태그 뱃지 ── */
.tag-badge {
  background: var(--zzl-lime);
  color: var(--forest-black);
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 900;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── 섹션 공통 ── */
section {
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-label {
  position: absolute;
  top: 20px;
  right: 20px;
  writing-mode: vertical-rl;
  color: var(--muted-gray);
  opacity: 0.5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--forest-black); }
::-webkit-scrollbar-thumb { background: var(--muted-gray); }
::-webkit-scrollbar-thumb:hover { background: var(--zzl-lime); }

/* ── 가로 스크롤 숨김 ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── 이미지 그리드 (ZZL-STAGRAM) ── */
.photo-cell {
  aspect-ratio: 1;
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo-cell img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1);
  transform: scale(1.1);
  transition: all 0.7s ease;
}
.photo-cell:hover img {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1);
}
.photo-log {
  position: absolute;
  bottom: 6px; left: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  background: rgba(0,0,0,0.85);
  padding: 2px 5px;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
}
.photo-cell:hover .photo-log { opacity: 1; }

/* ── 리뷰 슬라이더 ── */
.reviews-outer {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.reviews-outer:active { cursor: grabbing; }

.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.reviews-track.no-transition { transition: none; }

.review-card {
  flex-shrink: 0;
  background: #111;
  padding: 2.5rem;
  width: min(calc(100vw - 3rem), 400px);
}

/* ── 지도 컨테이너 ── */
.map-container {
  cursor: crosshair;
  overflow: hidden;
  background: #111;
}

/* ── 플로팅 맵 버튼 ── */
.floating-map-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background: var(--zzl-lime);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.floating-map-btn.show {
  opacity: 1;
  transform: translateY(0);
}
.floating-map-btn:hover {
  box-shadow: 0 10px 40px rgba(212,255,0,0.4);
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  .floating-map-btn { bottom: 24px; right: 24px; width: 56px; height: 56px; }
  .floating-map-btn:active { transform: scale(0.9); }
}

/* ── 가이드맵 모달 ── */
.map-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  background: rgba(5,6,5,0.95);
  backdrop-filter: blur(12px);
}
.map-modal.open { opacity: 1; pointer-events: auto; }

.map-modal-body {
  position: relative; z-index: 1;
  width: 96vw; max-width: 1200px; max-height: 96vh;
  background: #111;
  border: 1px solid rgba(212,255,0,0.2);
  display: flex; flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.map-modal.open .map-modal-body { transform: scale(1); }

.map-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zzl-lime);
}
.map-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.map-modal-close:hover { border-color: var(--zzl-lime); color: var(--zzl-lime); }

.map-modal-img-area {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  touch-action: none; cursor: grab;
}
.map-modal-img-area.dragging { cursor: grabbing; }
.map-modal-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transform-origin: center; pointer-events: none;
  user-select: none; -webkit-user-drag: none;
}
.map-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Swiper 공지 커스텀 ── */
.notices-swiper { padding-bottom: 48px !important; }
.notices-swiper .swiper-slide {
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.notice-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
.swiper-button-prev, .swiper-button-next {
  width: 40px !important; height: 40px !important;
  background: rgba(212,255,0,0.1);
  border: 1px solid rgba(212,255,0,0.3);
  color: var(--zzl-lime) !important;
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 13px !important; font-weight: 900; }
.swiper-pagination-bullet-active { background: var(--zzl-lime) !important; }

/* ── 제품 카드 ── */
.product-card-dark {
  background: #0E0F0E;
  border: 1px solid var(--muted-gray);
  transition: border-color 0.3s;
}
.product-card-dark:hover { border-color: var(--zzl-lime); }

/* ── 파트너 폼 ── */
.partner-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}
.partner-input::placeholder { color: rgba(255,255,255,0.25); }
.partner-input:focus { border-color: var(--zzl-lime); }

/* ── Loc 정보 ── */
.loc-info-box {
  border: 1px solid rgba(255,255,255,0.08);
  background: #111;
}

/* ── 카카오맵 래퍼 ── */
.kakao-map-wrap {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.kakao-map-wrap > div { width: 100% !important; height: 100% !important; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .section-label { right: 12px; font-size: 0.55rem; }
  .grid-lines { background-size: 30px 30px; }
}
