:root{
  /* Cheongsachorong vibe (Red + Blue blend) */
  --bg: radial-gradient(1200px 700px at 15% 10%, rgba(220,38,38,.20), transparent 55%),
        radial-gradient(1200px 700px at 85% 15%, rgba(37,99,235,.18), transparent 55%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.92));
  --panel: #ffffff;
  --text: #161616;
  --muted: #6b7280;
  --line: rgba(0,0,0,.06);

  --accent: #ff4fa3;
  --accent2:#ff7bc1;
  --shadow: 0 12px 26px rgba(25,10,20,.10);

  --radius: 22px;
  --max: 1100px;

  --headerH: 64px;

  /* ✅ footer를 더 낮게(컴팩트) */
  --footerH: 96px;
}


*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ================= Header ================= */
.ph-header{
  position:fixed;
  top:0; left:0; right:0;
  height: var(--headerH);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
  z-index:1000;
}
@supports (backdrop-filter: blur(10px)){
  .ph-header{ backdrop-filter: blur(10px); }
}

.ph-header__inner{
  max-width: var(--max);
  height:100%;
  margin:0 auto;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ph-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}
.ph-brand__logo{
  width:28px;
  height:28px;
  border-radius:10px;
  object-fit:contain;
}
.ph-brand__text{
  font-weight:900;
  letter-spacing:.2px;
}

.ph-nav{
  display:flex;
  align-items:center;
  gap:10px;
}

/* pill buttons */
.ph-pill{
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  color: var(--accent);
  background: rgba(255,79,163,.10);
  border: 1px solid rgba(255,79,163,.18);
  padding: 9px 12px;
  border-radius: 999px;
}
.ph-pill:hover{ filter: brightness(.97); }

.ph-pill--accent{
  color:#fff;
  border:none;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 20px rgba(255,79,163,.22);
}

/* ================= Footer (fixed) ================= */
.ph-footer{
  position:fixed;
  left:0; right:0; bottom:0;
  min-height: var(--footerH);
  background: rgba(255,255,255,.80);
  border-top: 1px solid var(--line);
  z-index:1000;
}
@supports (backdrop-filter: blur(10px)){
  .ph-footer{ backdrop-filter: blur(10px); }
}

.ph-footer__inner{
  max-width: var(--max);
  margin:0 auto;
  padding: 12px 18px;
  color: var(--muted);
  font-size:12.5px;

  /* ✅ footer 2컬럼(links/meta | QR) */
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:14px;

  text-align:left;
}

/* left side */
.ph-footerLeft{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.ph-footer__links{
  display:flex;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
}

.ph-footlink{
  text-decoration:none;
  color: var(--muted);
  background: rgba(255,79,163,.08);
  border: 1px solid rgba(255,79,163,.15);
  padding: 6px 10px;
  border-radius:999px;
}
.ph-footlink:hover{ color:#333; }

.ph-footer__meta{
  color: var(--muted);
  font-size: 12.5px;
}

/* right side (QR) */
.ph-footerRight{
  display:flex;
  justify-content:flex-end;
}

.ph-footerQR{
  display:flex;
  align-items:center;
  gap:10px;
}

.ph-footerQR img{
  width:56px;
  height:56px;
  padding:6px;
  background:#fff;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 16px rgba(25,10,20,.08);
}

.ph-footerQRText{
  text-align:left;
  font-size:12.5px;
  color: var(--muted);
  line-height:1.35;
}

.ph-footerQRTitle{
  font-weight:900;
  color:#333;
  margin-bottom:2px;
}

.ph-footerQRSub{
  line-height:1.35;
}

/* ================= Main Safe Area ================= */
.ph-main{
  padding-top: calc(var(--headerH) + 18px);
  padding-bottom: calc(var(--footerH) + 22px);
}

.ph-wrap{
  max-width: var(--max);
  margin:0 auto;
  padding:18px;
}

/* ================= Hero ================= */
.ph-hero{
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}

.ph-heroGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  align-items:center;
}

.ph-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
  color: var(--accent);
  background: rgba(255,79,163,.10);
  border: 1px solid rgba(255,79,163,.16);
  padding:6px 10px;
  border-radius:999px;
}

.ph-title{
  margin:12px 0 8px;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-0.6px;
}
.ph-title .accent{ color: var(--accent); }

.ph-sub{
  margin:0 0 14px;
  font-size:14.5px;
  line-height:1.55;
  color:#444;
}

/* search bar */
.ph-searchRow{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
  box-shadow: 0 8px 16px rgba(25,10,20,.06);
}

.ph-searchRow input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  padding:6px 8px;
}

.ph-searchBtn{
  border:none;
  cursor:pointer;
  font-weight:900;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 18px rgba(255,79,163,.22);
}
.ph-searchBtn:hover{ filter: brightness(.98); }

/* CTA */
.ph-ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.ph-cta{
  text-decoration:none;
  font-weight:900;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,79,163,.18);
  background: rgba(255,79,163,.10);
  color: var(--accent);
}
.ph-cta:hover{ filter: brightness(.98); }

.ph-cta--primary{
  border:none;
  color:#fff;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 18px rgba(255,79,163,.22);
}

/* hero image */
.ph-heroImg{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.05);
  box-shadow: 0 14px 26px rgba(25,10,20,.08);
}
.ph-heroImg img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
}

/* ================= Categories ================= */
.ph-section{ margin-top:22px; }

.ph-sectionTitle{
  margin:0 0 10px;
  font-size:15px;
  font-weight:900;
  color:#333;
}

.ph-cats{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}

.ph-cat{
  min-width:160px;
  background: rgba(255,255,255,.90);
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
  box-shadow: 0 10px 18px rgba(25,10,20,.08);
  scroll-snap-align:start;
  text-decoration:none;
  color:inherit;
}
.ph-cat:hover{ filter: brightness(.99); }

.ph-catThumb{
  height:88px;
  border-radius:14px;
  background: linear-gradient(
    135deg,
    rgba(255,79,163,.22),
    rgba(255,200,225,.60)
  );
  border:1px solid rgba(255,79,163,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color: rgba(0,0,0,.55);
}

.ph-catName{
  margin-top:10px;
  font-size:13.5px;
  font-weight:900;
}
.ph-catMeta{
  margin-top:4px;
  font-size:12px;
  color: var(--muted);
}

/* ================= Responsive ================= */
@media (min-width: 920px){
  .ph-heroGrid{
    grid-template-columns: 1.1fr .9fr;
    gap:22px;
  }
  .ph-title{ font-size:42px; }
  .ph-heroImg img{ height:260px; }
  .ph-cat{ min-width:190px; }
}

/* footer mobile stack */
@media (max-width: 720px){
  :root{ --footerH: 168px; }

  .ph-footer__inner{
    grid-template-columns: 1fr;
    text-align:center;
  }

  .ph-footer__links{
    justify-content:center;
  }

  .ph-footerRight{
    justify-content:center;
  }

  .ph-footerQRText{
    text-align:center;
  }
}

/* extra small: header pills 조금 축소 */
@media (max-width: 520px){
  .ph-nav{ gap:8px; }
  .ph-pill{ padding: 8px 10px; font-size: 12.5px; }
}
