/* 상세 페이지 전용 스타일 (공통 변수/폰트/네비는 youth.css에 있음)
   → 메인 화면과 동일한 네이비·슬레이트 라이트 테마로 색상 통일 */

/* =============================
   Design Tokens (메인 톤과 동일)
============================= */
:root{
  --bg: #ffffff;
  --surface: #f7f9fc;
  --elev: #ffffff;

  --fg: #0f172a;           /* slate-900 */
  --muted: #475569;        /* slate-600 */

  --edge: rgba(2,6,23,.12);
  --edge-strong: rgba(2,6,23,.18);

  --primary: #0b3b74;      /* deep navy */
  --primary-600: #0e4a92;
  --primary-50: #e9f1ff;

  --radius: 14px; 
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(2,6,23,.06), 0 1px 1px rgba(2,6,23,.06);
  --shadow-md: 0 10px 24px rgba(2,6,23,.06), 0 4px 10px rgba(2,6,23,.08);
}

/* =============================
   공통 베이스
============================= */
/* 가로 스크롤 방지 + 박스사이징 */
html { box-sizing: border-box; }
*,*::before,*::after{ box-sizing: inherit; }
html,body{ width:100%; max-width:100%; overflow-x:hidden; }

/* 레이아웃 컨테이너 */
.container,.wrap,.page-inner{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* 타이포 스케일 */
h1 { font-size: clamp(22px, 5vw, 36px); }
h2 { font-size: clamp(18px, 4.2vw, 28px); }

/* 미디어 기본 */
img,video,canvas,iframe{ max-width:100%; height:auto; display:block; }

/* =============================
   Header / Nav (메인과 동일 톤)
============================= */
header{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--edge);
}
.nav{ display:flex; justify-content:space-between; align-items:center; padding:14px 0; }
.logo a{ display:flex; align-items:center; gap:8px; font-weight:900; font-size:22px; letter-spacing:.2px; text-decoration:none; color:var(--fg); }
.logo .mark{ border:2px solid var(--fg); padding:6px 10px; border-radius:12px; }

/* 메뉴 */
.menu{ display:flex; gap:20px; }
.menu a{
  color: var(--muted);
  text-decoration:none;
  font-weight:600; font-size:15px;
  padding:8px 10px; border-radius:10px;
  border:1px solid transparent;
}
.menu a:hover, .menu a:focus-visible{
  color: var(--fg);
  background: var(--primary-50);
  border-color: var(--edge);
  outline: none;
}
.hamburger{
  display:none;
  border:1px solid var(--edge);
  background: var(--elev);
  color: var(--fg);
  padding:8px 10px; border-radius:12px; cursor:pointer;
}
@media (max-width: 860px){
  .menu{ display:none; }
  .menu.open{
    display:flex; flex-direction:column;
    position:absolute; top:60px; left:16px; right:16px;
    background: var(--elev);
    border:1px solid var(--edge); border-radius:14px;
    padding:10px; gap:6px; box-shadow: var(--shadow-md);
  }
  .menu.open a{ padding:12px; }
  .hamburger{ display:inline-block; }
}

/* =============================
   Hero
============================= */
.hero{ padding:24px 0 8px; }
.hero-card{
  border:1px solid var(--edge);
  background: var(--elev);
  border-radius: var(--radius-lg);
  padding:18px;
  box-shadow: var(--shadow-sm);
}
.hero-card h1{ margin:0 0 6px; letter-spacing:.2px; }
.hero-card p{ margin:0; color: var(--muted); }

/* =============================
   상세 레이아웃
============================= */
.detail{
  display:grid; grid-template-columns:1fr 1.6fr; gap:26px;
}
@media (max-width:980px){ .detail{ grid-template-columns:1fr; } }

/* 왼쪽: 포스터/공유/개설자 */
.poster{
  border:1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding:14px;
  background: var(--elev);       /* ✨ 라이트 톤으로 변경 */
  height:fit-content;
  box-shadow: var(--shadow-sm);
}
.poster img{
  width:100%;
  border-radius:10px;
  border:1px solid var(--edge);
  object-fit:cover;
  filter: saturate(.92);         /* ✨ 흑백→은은한 채도 */
  transition: filter .3s ease, transform .45s ease;
}
.poster img:hover{ filter: saturate(1); transform: scale(1.01); }

.share{ display:flex; gap:8px; margin-top:10px; }
.share-btn{
  border:1px solid var(--edge);
  background: var(--elev);       /* ✨ */
  color: var(--fg);              /* ✨ */
  padding:8px 12px; border-radius:10px;
  cursor:pointer; text-decoration:none; font-weight:700;
}
.share-btn:hover{ background: color-mix(in oklab, var(--primary-50) 60%, var(--elev)); }
.share-btn.outline{ background: var(--surface); }

.organizer{ margin-top:14px; border-top:1px solid var(--edge); padding-top:12px; }
.org-title{ color: var(--muted); margin-bottom:8px; font-weight:700; }
.org-row{ display:flex; gap:10px; align-items:center; }
.org-avatar{
  width:40px; height:40px;
  border:1px solid var(--edge); border-radius:50%;
  display:grid; place-items:center;
  background: var(--surface);
}
.org-meta .org-name{ font-weight:800; }
.org-meta .org-contact{ color: var(--muted); font-size:14px; }

/* 오른쪽: 본문 카드 */
.content{
  border:1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding:18px;
  background: var(--elev);       /* ✨ */
  box-shadow: var(--shadow-sm);
}
.title{ margin:0 0 10px; font-size:28px; letter-spacing:.2px; }

/* 태그 라인 */
.tags.line{ display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 12px; }
.tag{
  border:1px solid var(--edge);
  background: var(--surface);    /* ✨ */
  color: var(--fg);              /* ✨ */
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
}

/* 메타 정보 */
.meta{
  border:1px solid var(--edge);
  border-radius:12px;
  padding:10px 12px;
  background: var(--surface);    /* ✨ */
}
.meta .row{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:8px; padding:8px 0;
  border-bottom:1px solid var(--edge);
}
.meta .row:last-child{ border-bottom:0; }
.meta dt{ color: var(--muted); font-weight:700; }
.meta .mini{
  border:1px solid var(--edge);
  padding:3px 8px; border-radius:999px;
  text-decoration:none; color: var(--fg);
  font-size:12px; background: var(--elev); font-weight:700;
}

/* 가격/신청 */
.apply{
  margin-top:12px;
  border:1px solid var(--edge);
  border-radius:12px;
  padding:12px;
  display:flex; align-items:center; gap:12px; justify-content:space-between;
  background: var(--surface);    /* ✨ */
}
.price{ font-size:22px; font-weight:900; }
.apply-btn{
  border:1px solid color-mix(in oklab, var(--primary) 40%, var(--edge));
  background: var(--primary); color:#fff;
  padding:10px 16px; border-radius:10px;
  cursor:pointer; font-weight:800;
}
.apply-btn:hover{ background: var(--primary-600); }

/* 소개 */
.intro{ margin-top:18px; }
.intro h3{ margin:0 0 8px; font-size:22px; }
.intro p{ color: var(--muted); }

/* 블록 1: 슬라이드 */
.intro-slider{
  margin:14px 0; position:relative;
  border:1px solid var(--edge); border-radius:12px; overflow:hidden;
  background: var(--elev); box-shadow: var(--shadow-sm);
}
.intro-slides{ display:flex; transition:transform .6s ease; will-change:transform; }
.intro-slide{ min-width:100%; }
.intro-slide img{
  width:100%; height:360px; object-fit:contain;
  filter: saturate(.92);                     /* ✨ */
  transition: filter .3s ease, transform .45s ease;
  background: var(--surface);
}
.intro-slide img:hover{ filter:saturate(1); transform:scale(1.02); }

.intro-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  border:1px solid var(--edge);
  background: color-mix(in oklab, var(--elev) 85%, transparent);
  color: var(--fg);
  width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; z-index:2;
}
.intro-btn:hover{ border-color: var(--edge-strong); }
.intro-btn.prev{ left:10px; } 
.intro-btn.next{ right:10px; }

.intro-dots{
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:2;
}
.intro-dots .dot{
  width:8px; height:8px; border:1px solid var(--fg);
  border-radius:50%; background:transparent; opacity:.5; cursor:pointer;
}
.intro-dots .dot.active{ background: var(--fg); opacity:1; }

.intro-caption{
  padding:8px 10px; font-size:13px; color: var(--muted);
  border-top:1px solid var(--edge);
  background: var(--surface);
}

/* 블록 2 */
.intro-card{
  margin-top:12px;
  border:1px solid var(--edge);
  border-radius:12px;
  padding:12px;
  background: var(--elev);
  box-shadow: var(--shadow-sm);
}

/* 블록 3 */
.intro-row{
  margin-top:12px; display:grid; grid-template-columns:1.1fr 1fr;
  gap:14px; align-items:center;
}
@media (max-width:900px){ .intro-row{ grid-template-columns:1fr; } }

.intro-media img{
  width:100%; border:1px solid var(--edge); border-radius:10px;
  object-fit:cover;
  filter: saturate(.92);
  transition: filter .3s ease, transform .45s ease;
  background: var(--surface);
}
.intro-media img:hover{ filter:saturate(1); transform:scale(1.01); }
.intro-text h4{ margin:0 0 6px; }

/* 배너 공통 비율 (유지) */
.slider,.carousel,.hero,.banner{ width:100%; overflow:hidden; border-radius:16px; }
.slide,.swiper-slide,.banner-slide{ width:100%; aspect-ratio:16/9; }
@media (max-width:560px){ .slide,.swiper-slide,.banner-slide{ aspect-ratio:4/3; } }
.slide img,.swiper-slide img,.banner-slide img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Reveal */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.show{ opacity:1; transform:translateY(0); }

/* 포커스 링 */
:focus-visible{
  outline:3px solid color-mix(in oklab, var(--primary) 45%, transparent);
  outline-offset:2px; border-radius:10px;
}

/* 모션 민감도 */
@media (prefers-reduced-motion: reduce){
  .poster img, .intro-slide img, .intro-media img{ transition:none; }
}
