/* site-local: 로컬체험단 전역 스타일 (모든 페이지에 로드)
   views/partials/header.ejs 에서 로드.

   컨셉: 리뷰노트 스타일 — 딥 티얼 + 화이트 + 옐로우 악센트, 정보 밀집
   팔레트:
     --brand:       #0d9488 (teal-600, 메인)
     --brand-deep:  #0f766e (teal-700, 강조)
     --brand-light: #f0fdfa (teal-50, 배경 틴트)
     accent-amber:  #f59e0b (보조, 2번 hero 카드)
     surface:       #f8fafc (body, 라이트 그레이)
*/

/* ============================================================
   1. CSS 변수 오버라이드 — 티얼 팔레트
   ============================================================ */
body.site-local {
  --brand: #0d9488 !important;
  --brand-deep: #0f766e !important;
  --brand-light: #f0fdfa !important;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  background: #f8fafc !important;
  color:#0f172a;
}

/* ============================================================
   2. site-theme.css 하드코딩 색상 → 티얼 오버라이드
   ============================================================ */
body.site-local .ms-topbar {
  background: linear-gradient(90deg, #0f766e, #0d9488) !important;
}
body.site-local .ms-header {
  border-bottom: 1px solid rgba(13,148,136,0.18) !important;
}
body.site-local .ms-chip {
  background:#f0fdfa !important;
  color:#0f766e !important;
  border-color:rgba(13,148,136,0.25) !important;
}
body.site-local .hero-badge.primary,
body.site-local .campaign-badge.primary {
  background:#0d9488 !important;
  color:#fff !important;
}
body.site-local .hero-promo,
body.site-local .campaign-body .promo {
  background:#f0fdfa !important;
  color:#0f766e !important;
}
body.site-local.auth-login .auth-brand,
body.site-local.auth-join .join-shell {
  background: linear-gradient(140deg, #0f766e, #0d9488) !important;
}
body.site-local.auth-reg-influencer .reg-card,
body.site-local.auth-reg-advertiser .adv-reg-card {
  border-top: 4px solid #0d9488 !important;
}

/* ============================================================
   3. 헤더 컨테이너 폭 — 거의 풀폭 1600px
   site-local 의 현재 header.ejs 가 .ms-head-main + .ms-header-extra 구조 사용
   ============================================================ */
body.site-local .ms-head-main {
  max-width:1600px !important;
  padding:18px 40px 14px !important;
  gap:28px !important;
}
@media (min-width:981px) {
  body.site-local .ms-head-main { grid-template-columns:auto minmax(280px,1fr) auto !important; }
}
body.site-local .site-header-extra {
  max-width:1600px !important;
  padding:0 40px 14px !important;
}
body.site-local .ms-topbar > div,
body.site-local .ms-topbar-inner {
  max-width:1600px !important;
  padding:8px 40px !important;
}

/* ============================================================
   4. 헤더 비주얼 — 화이트 + 티얼 액센트 + 파비콘 로고
   ============================================================ */
body.site-local .ms-header {
  background:#fff !important;
  border-bottom:1px solid #e2e8f0 !important;
  box-shadow:0 1px 0 rgba(15,23,42,0.02) !important;
  backdrop-filter:none !important;
}

/* 브랜드 마크 — 파비콘(favicon-local.svg) 적용 */
body.site-local .ms-head-main .ms-brand {
  align-items:center !important;
  gap:14px !important;
}
body.site-local .ms-head-main .ms-brand-mark {
  display:flex !important;
  width:46px !important;
  height:46px !important;
  border-radius:10px !important;
  background:url('/img/favicon-local.svg') center/cover no-repeat !important;
  box-shadow:0 8px 20px rgba(13,148,136,0.25) !important;
  color:transparent !important;
  font-size:0 !important;
  overflow:hidden !important;
}
body.site-local .ms-head-main .ms-brand-text strong {
  font-family:"Pretendard","Noto Sans KR",sans-serif !important;
  font-size:22px !important;
  font-weight:700 !important;
  color:#115e59 !important;
  letter-spacing:-0.045em !important;
}
body.site-local .ms-head-main .ms-brand-text span {
  color:#64748b !important;
  font-weight:600 !important;
  font-size:12px !important;
  margin-top:2px !important;
}

/* 검색창 — 라운드 pill + 티얼 액센트 */
body.site-local .ms-head-main .ms-search-box {
  height:44px !important;
  border:1.5px solid #e2e8f0 !important;
  border-radius:10px !important;
  background:#f8fafc !important;
  box-shadow:none !important;
  transition:border-color .15s, background .15s, box-shadow .15s;
  padding:0 !important;
}
body.site-local .ms-head-main .ms-search-box:focus-within {
  border-color:#0d9488 !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(13,148,136,0.12) !important;
}
body.site-local .ms-head-main .ms-search-box input {
  color:#0f172a !important;
  font-size:14px !important;
  padding:0 18px !important;
  background:transparent !important;
}
body.site-local .ms-head-main .ms-search-box input::placeholder {
  color:#94a3b8 !important;
}
body.site-local .ms-head-main .ms-search-box button {
  background:transparent !important;
  border-left:1px solid #e2e8f0 !important;
  border-radius:0 8px 8px 0 !important;
  color:#0f766e !important;
  font-weight:800 !important;
  width:78px !important;
  flex-shrink:0 !important;
}
body.site-local .ms-head-main .ms-search-box button:hover {
  background:#f0fdfa !important;
}

/* 액션 버튼 — 깔끔한 사각형 (라운드 약간) */
body.site-local .ms-head-main .ms-actions {
  gap:8px !important;
}
body.site-local .ms-head-main .ms-actions .ms-btn {
  background:#fff !important;
  border:1.5px solid #e2e8f0 !important;
  color:#334155 !important;
  border-radius:8px !important;
  font-weight:700 !important;
  height:40px !important;
  min-height:40px !important;
  font-size:13px !important;
  padding:0 16px !important;
  box-shadow:none !important;
  transition:background .15s, border-color .15s, color .15s;
}
body.site-local .ms-head-main .ms-actions .ms-btn:hover {
  background:#f0fdfa !important;
  border-color:#0d9488 !important;
  color:#0f766e !important;
  transform:none !important;
}
body.site-local .ms-head-main .ms-actions a[href="/auth/register"],
body.site-local .ms-head-main .ms-actions .ms-btn.primary {
  background:#0d9488 !important;
  border:1.5px solid #0d9488 !important;
  color:#fff !important;
  font-weight:800 !important;
}
body.site-local .ms-head-main .ms-actions a[href="/auth/register"]:hover,
body.site-local .ms-head-main .ms-actions .ms-btn.primary:hover {
  background:#0f766e !important;
  border-color:#0f766e !important;
  color:#fff !important;
}
body.site-local .ms-head-main .ms-ham span { background:#334155 !important; }

/* 카테고리 네비 — 텍스트 라인 스타일 (리뷰노트처럼 심플) */
body.site-local .site-header-extra {
  background:#fff !important;
  border-top:1px solid #f1f5f9 !important;
}
body.site-local .site-header-extra .menu-list.menu-textline {
  padding:12px 0 !important;
  gap:4px !important;
}
body.site-local .site-header-extra .menu-textline .menu-item {
  height:38px !important;
  padding:0 16px !important;
  color:#475569 !important;
  font-size:13px !important;
  font-weight:700 !important;
  border-radius:8px !important;
  transition:background .15s, color .15s !important;
}
body.site-local .site-header-extra .menu-textline .menu-item::before {
  content:"" !important;
  display:none !important;
}
body.site-local .site-header-extra .menu-textline .menu-item:hover {
  background:#f0fdfa !important;
  color:#0f766e !important;
}

/* ============================================================
   5. 서브페이지 컨테이너 폭 — 홈과 동일 1600px
   ============================================================ */
.site-local .list-shell {
  max-width:1600px !important;
  padding:24px 40px 72px !important;
}
.site-local .detail-wrap {
  max-width:1600px !important;
  padding:0 40px !important;
  grid-template-columns:minmax(0,1fr) 360px !important;
  gap:40px !important;
}
.site-local .reco-page {
  max-width:1600px !important;
  padding:32px 40px !important;
}
.site-local .main-wrap { max-width:1600px !important; }
.site-local .my-layout {
  max-width:1600px !important;
  padding:24px 40px !important;
}
/* 마이페이지 통계/추천 카드 — 로컬 Vercel 미니멀 톤 */
.site-local .my-layout .stat-card {
  border:none !important;
  box-shadow:
    rgba(0,0,0,0.05) 0px 0px 0px 1px,
    rgba(0,0,0,0.02) 0px 2px 4px -2px !important;
}
.site-local .my-layout .stat-card:hover {
  box-shadow:
    rgba(13,148,136,0.22) 0px 0px 0px 1px,
    rgba(13,148,136,0.08) 0px 12px 24px -8px !important;
}
.site-local .my-layout .mp-reco-panel {
  border-left:3px solid #115e59 !important;
  background:linear-gradient(90deg, rgba(17,94,89,0.04), transparent 50%) !important;
}
.site-local .my-layout .mp-grade-label,
.site-local .my-layout .stat-label {
  font-weight:600 !important;
  letter-spacing:-0.02em !important;
}
.site-local .footer-inner { max-width:1600px !important; }
.site-local .header-inner,
.site-local .tab-bar-inner { max-width:1600px !important; }

/* ============================================================
   6. 캠페인 리스트 페이지 — 5 cols + 심플 카드 스타일
   ============================================================ */
.site-local .list-shell .grid.cols-5,
.site-local .list-shell .grid.cols-4,
.site-local .list-shell .grid.cols-3 {
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:16px !important;
}
.site-local .list-shell .hero {
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  padding:8px 0 20px !important;
  border-bottom:1px solid #e2e8f0 !important;
  margin-bottom:20px !important;
}
.site-local .list-shell .hero h1 {
  color:#115e59 !important;
  font-weight:700 !important;
  font-size:1.5rem !important;
  letter-spacing:-0.045em !important;
}
.site-local .list-shell .hero p {
  color:#64748b !important;
  margin-top:4px !important;
}
.site-local .list-shell .filter {
  border:1px solid #e2e8f0 !important;
  border-radius:10px !important;
  background:#fff !important;
}
.site-local .list-shell .sel,
.site-local .list-shell .inp {
  border:1px solid #e2e8f0 !important;
  border-radius:8px !important;
  background:#f8fafc !important;
}
.site-local .list-shell .sel:focus,
.site-local .list-shell .inp:focus {
  border-color:#0d9488 !important;
  background:#fff !important;
  outline:none;
}
.site-local .list-shell .btn {
  background:#0d9488 !important;
  border:none !important;
  border-radius:8px !important;
  box-shadow:0 2px 8px rgba(13,148,136,0.22) !important;
}
.site-local .list-shell .card {
  border-radius:10px !important;
  border:none !important;
  background:#fff !important;
  box-shadow:
    rgba(0,0,0,0.05) 0px 0px 0px 1px,
    rgba(0,0,0,0.02) 0px 2px 4px -2px !important;
  transition:transform .18s ease, box-shadow .18s ease !important;
}
.site-local .list-shell .card:hover {
  transform:translateY(-2px) !important;
  box-shadow:
    rgba(13,148,136,0.22) 0px 0px 0px 1px,
    rgba(13,148,136,0.1) 0px 12px 24px -8px,
    rgba(0,0,0,0.04) 0px 4px 8px -2px !important;
}
.site-local .list-shell .card .title { color:#0f172a !important; }
.site-local .list-shell .card .promo {
  background:#f0fdfa !important;
  color:#0f766e !important;
}
.site-local .list-shell .card .badge.primary {
  background:#0d9488 !important;
  color:#fff !important;
}
.site-local .list-shell .pages a {
  border:1px solid #e2e8f0 !important;
  background:#fff !important;
  color:#475569 !important;
}
.site-local .list-shell .pages a:hover {
  border-color:#0d9488 !important;
  color:#0f766e !important;
}
.site-local .list-shell .pages a.active {
  background:#0d9488 !important;
  border-color:#0d9488 !important;
  color:#fff !important;
}

/* ============================================================
   7. 디테일 / AI 추천
   ============================================================ */
.site-local .detail-card,
.site-local .detail-section {
  background:#fff !important;
  border:none !important;
  border-radius:12px !important;
  box-shadow:
    rgba(0,0,0,0.05) 0px 0px 0px 1px,
    rgba(0,0,0,0.02) 0px 2px 4px -2px !important;
}
.site-local .detail-card h1,
.site-local .detail-card h2,
.site-local .detail-section h2 {
  font-weight:700 !important;
  letter-spacing:-0.035em !important;
  color:#115e59 !important;
}
.site-local .apply-card {
  box-shadow:
    rgba(13,148,136,0.14) 0px 0px 0px 1px,
    rgba(13,148,136,0.08) 0px 12px 28px -8px !important;
}
.site-local .btn-apply {
  background:#115e59 !important;
  color:#fff !important;
  border:none !important;
  border-radius:999px !important;
  padding:14px 28px !important;
  font-weight:700 !important;
  letter-spacing:-0.01em !important;
  box-shadow:0 4px 12px rgba(17,94,89,0.25) !important;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.site-local .btn-apply:hover {
  background:#0f766e !important;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(17,94,89,0.35) !important;
}
.site-local .reco-page .reco-card {
  border:1px solid #e2e8f0 !important;
  border-radius:10px !important;
  background:#fff !important;
}

/* ============================================================
   8. 반응형
   ============================================================ */
@media(max-width:1400px) {
  body.site-local .ms-head-main { padding:16px 28px 12px !important; }
  body.site-local .site-header-extra { padding:0 28px 12px !important; }
  body.site-local .ms-topbar > div,
  body.site-local .ms-topbar-inner { padding:6px 28px !important; }
  .site-local .list-shell { padding:20px 28px 60px !important; }
  .site-local .detail-wrap { padding:0 28px !important; }
  .site-local .reco-page { padding:28px !important; }
  .site-local .my-layout { padding:20px 28px !important; }
  .site-local .list-shell .grid.cols-5,
  .site-local .list-shell .grid.cols-4,
  .site-local .list-shell .grid.cols-3 {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}
@media(max-width:1100px) {
  .site-local .list-shell .grid.cols-5,
  .site-local .list-shell .grid.cols-4,
  .site-local .list-shell .grid.cols-3 {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .site-local .detail-wrap { grid-template-columns:1fr !important; }
}
@media(max-width:900px) {
  body.site-local .ms-head-main { padding:12px 16px !important; }
  body.site-local .site-header-extra { padding:0 16px 10px !important; }
  body.site-local .ms-topbar > div,
  body.site-local .ms-topbar-inner { padding:6px 16px !important; }
  .site-local .list-shell { padding:14px 16px 56px !important; }
  .site-local .detail-wrap { padding:0 16px !important; }
  .site-local .reco-page { padding:18px 16px !important; }
  .site-local .my-layout { padding:16px !important; }
  .site-local .list-shell .grid.cols-5,
  .site-local .list-shell .grid.cols-4,
  .site-local .list-shell .grid.cols-3 {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(max-width:640px) {
  .site-local .list-shell { padding:12px 12px 56px !important; }
  .site-local .list-shell .grid.cols-5,
  .site-local .list-shell .grid.cols-4,
  .site-local .list-shell .grid.cols-3 {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
}

/* ============================================================
   포커스 인디케이터 — local 브랜드 컬러 (#0d9488)
   ============================================================ */
body.site-local a:focus-visible,
body.site-local button:focus-visible,
body.site-local input:focus-visible,
body.site-local textarea:focus-visible,
body.site-local select:focus-visible,
body.site-local [tabindex]:focus-visible {
  outline: 2px solid #0d9488 !important;
  outline-offset: 2px !important;
}
body.site-local .campaign-card:focus-visible,
body.site-local .cp-card:focus-visible,
body.site-local .card:focus-visible,
body.site-local .nh3-card:focus-visible,
body.site-local .op-hero5-card:focus-visible,
body.site-local .op-brand-card:focus-visible,
body.site-local .op-midban-card:focus-visible,
body.site-local .uh3-card:focus-visible,
body.site-local .lh2-card:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px #0d9488, 0 8px 24px rgba(0,0,0,0.08) !important;
}

/* ============================================================
   푸터 — Vercel/Stripe 스타일 화이트 미니멀
   로컬은 다크 베이스에서 완전히 분리된 클린 화이트 톤
   ============================================================ */
body.site-local .footer {
  background: #115e59 !important;
  color: rgba(255,255,255,0.72) !important;
  border-top: none !important;
  padding-top: 48px !important;
}
body.site-local .footer-top { border-bottom: 1px solid rgba(255,255,255,0.12) !important; }
body.site-local .footer-logo { color: #fff !important; font-weight: 900 !important; letter-spacing: -0.04em !important; }
body.site-local .footer-tagline { color: #a7f3d0 !important; font-weight: 700 !important; }
body.site-local .footer-desc { color: rgba(255,255,255,0.58) !important; }
body.site-local .footer-contact { color: rgba(255,255,255,0.75) !important; }
body.site-local .footer-col h4 { color: #fff !important; font-weight: 700 !important; }
body.site-local .footer-links li a { color: rgba(255,255,255,0.6) !important; }
body.site-local .footer-links li a:hover { color: #5eead4 !important; }
body.site-local .footer-family { border-bottom: 1px solid rgba(255,255,255,0.12) !important; }
body.site-local .footer-family-label { color: #fff !important; }
body.site-local .footer-family-link {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
body.site-local .footer-family-link:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #5eead4 !important;
  box-shadow: 0 4px 12px rgba(94,234,212,0.12) !important;
}
body.site-local .ffl-name { color: #fff !important; }
body.site-local .ffl-desc { color: rgba(255,255,255,0.55) !important; }
body.site-local .footer-legal { border-top: 1px solid rgba(255,255,255,0.12) !important; }
body.site-local .footer-legal a { color: rgba(255,255,255,0.7) !important; }
body.site-local .footer-legal a:hover { color: #5eead4 !important; }
body.site-local .footer-legal a strong { color: #fff !important; }
body.site-local .footer-bottom { color: rgba(255,255,255,0.45) !important; }
body.site-local .footer-bottom-right a { color: rgba(255,255,255,0.6) !important; }
body.site-local .footer-bottom-right a:hover { color: #5eead4 !important; }
body.site-local .footer-bottom-sep { color: rgba(255,255,255,0.2) !important; }

/* ── 로컬 전용 2-row 미니멀 레이아웃 ── */
body.site-local .footer-top-local {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  padding-bottom: 28px !important;
  border-bottom: 1px solid #cbd5e1 !important;
}
body.site-local .footer-local-lead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
body.site-local .footer-local-lead .footer-logo {
  font-size: 1.4rem !important;
  letter-spacing: -0.045em !important;
}
body.site-local .footer-local-lead .footer-tagline {
  color: #a7f3d0 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}
body.site-local .footer-local-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.site-local .fll-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
body.site-local .fll-chip:hover {
  border-color: #5eead4 !important;
  color: #5eead4 !important;
  background: rgba(94,234,212,0.1) !important;
}
body.site-local .fll-chip-all {
  background: #5eead4 !important;
  border-color: #5eead4 !important;
  color: #0f4c49 !important;
  font-weight: 800;
}
body.site-local .fll-chip-all:hover {
  background: #a7f3d0 !important;
  border-color: #a7f3d0 !important;
  color: #0f4c49 !important;
}
body.site-local .footer-local-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
}
body.site-local .footer-local-desc {
  margin: 0;
  max-width: 540px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55) !important;
}
body.site-local .footer-local-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
body.site-local .footer-local-links a {
  color: rgba(255,255,255,0.72) !important;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.15s;
}
body.site-local .footer-local-links a:hover { color: #5eead4 !important; }
body.site-local .fll-contact {
  color: rgba(255,255,255,0.58) !important;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  body.site-local .footer-local-lead { flex-direction: column; gap: 6px; align-items: flex-start; }
  body.site-local .footer-local-meta { flex-direction: column; align-items: flex-start; }
}
