/*
 * Look360 VR 마실 — 레거시 look360.kr 컨셉을 따르는 사이트 전용 스타일 (site.config.ts → theme.stylesheet)
 *
 * 레거시에서 뽑은 값 (2026-11-22 실측):
 *   상단 바 #1a1a1a · 버튼 파랑 #008de7 (radius 4px) · 활성 메뉴 #00a0e9 · 본문 #333 · 테두리 #ddd
 * 핵심: 검은 상단 바 + 흰 로고, 파란 포인트, 화면을 크게 채우는 360° 사진·VR.
 * 색 토큰(배경·글자·강조)은 site.config.ts theme.light/dark 에 있고, 여기는 토큰으로 못 하는 배치만.
 */

:root {
  --l3-bar: #1a1a1a;
  --l3-blue: #008de7;
  --l3-blue-2: #00a0e9;
  --l3-radius: 10px;
}

/* ───────── 상단 바: 화면 끝까지 검은 띠 (본문 폭 header 를 그림자로 넓힌다) ───────── */
body > header.app-layout,
header.app-layout {
  background: var(--l3-bar);
  box-shadow: 0 0 0 100vmax var(--l3-bar);
  clip-path: inset(0 -100vmax);
  color: #f2f2f2;
}
header.app-layout > div {
  background: transparent !important;
  border-color: transparent !important;
}
header.app-layout a,
header.app-layout button,
header.app-layout svg {
  color: #f2f2f2;
  stroke: currentColor;
}
header.app-layout #menu-items a:hover,
header.app-layout #menu-items button:hover,
header.app-layout .active-nav {
  color: var(--l3-blue-2) !important;
}
header.app-layout .active-nav {
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--l3-blue-2);
}
/* 로고(LOOK 360°) 뒤에는 «VR 마실» 만 — 사이트 제목 전체는 화면 읽기용으로만 남긴다 */
header.app-layout a:has(> .site-logo) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
header.app-layout .site-logo {
  height: 1.9rem;
  margin: 0;
}
header.app-layout a:has(> .site-logo) .site-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
header.app-layout a:has(> .site-logo)::after {
  content: "VR 마실";
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #fff;
}
@media (max-width: 639px) {
  header.app-layout #menu-items {
    background: var(--l3-bar);
  }
}

/* ───────── 메인 히어로: 제목 + 이번 마실 VR 크게 ───────── */
.site-hero {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 2.5rem 0 2rem;
  color: #fff;
  /* 가운데(글 폭)와 바깥이 같은 색이어야 띠가 안 보인다 */
  background: #1d2023;
  box-shadow: 0 0 0 100vmax #1d2023;
  clip-path: inset(0 -100vmax);
}
/* 메인 화면은 상단 바와 히어로 사이 여백(main my-1) 없이 붙인다 */
main#main-content[data-layout="index"]:has(> .site-hero) {
  margin-top: 0;
}
.site-hero-text {
  text-align: center;
}
.site-hero-text h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.site-hero-text p {
  margin: 0 auto;
  max-width: 40rem;
  opacity: 0.88;
  word-break: keep-all;
}
.site-hero-cta {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.55rem 1.3rem;
  border-radius: 4px;
  background: var(--l3-blue);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}
.site-hero-cta:hover {
  background: var(--l3-blue-2);
}
.site-hero .vr-hero {
  margin-top: 1.8rem;
}
.site-hero .vr-hero figcaption,
.site-hero .vr-hero figcaption a {
  color: #e6e6e6;
}

/* ───────── 본문 VR: 글 폭보다 넓게, 화면을 크게 ───────── */
.vr-embed {
  margin: 1.6rem 0 2rem;
}
.vr-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 78vh;
  border: 0;
  border-radius: var(--l3-radius);
  background: #111;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.vr-embed figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}
/* 넓은 화면: 768px 글 폭을 벗어나 최대 1080px 까지 */
@media (min-width: 900px) {
  #article .vr-embed,
  .site-hero .vr-hero {
    width: min(1080px, calc(100vw - 48px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 640px) {
  .vr-embed iframe {
    aspect-ratio: 4 / 5;
    border-radius: 6px;
  }
}

/* ───────── 글 목록: 큰 대표 이미지 카드 (레거시 VR 타일 느낌) ───────── */
ul:has(> li.has-cover) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
li.has-cover {
  margin: 0 !important;
  border: 1px solid var(--border);
  border-radius: var(--l3-radius);
  overflow: hidden;
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0 0 1rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
li.has-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
li.has-cover > :not(.post-cover) {
  margin-left: 1rem;
  margin-right: 1rem;
}
li.has-cover .post-cover {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  margin-bottom: 0.8rem;
  background: #222;
}
li.has-cover .post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 레거시 썸네일처럼 «360°» 표시 */
li.has-cover .post-cover::after {
  content: "360°";
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
li.has-cover > a:not(.post-cover) {
  color: var(--foreground);
}
li.has-cover > a:not(.post-cover):hover {
  color: var(--accent);
}
li.has-cover p {
  font-size: 0.92rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ───────── 버튼·링크 ───────── */
#main-content a.inline-flex,
a.btn-primary {
  border-radius: 4px;
}
