/*!
 * javxp15-header-footer — header + footer ของฟลีต javxp15-tube
 * ดำ/ชมพูอ่อน · sticky header · เมนู 6 ช่อง · live search
 *
 * สีทั้งชุดอยู่ใน custom property ข้างล่าง — เว็บไหนอยากเปลี่ยนโทน
 * ตั้งทับผ่านฟิลเตอร์ `javxp15_hf_palette` (PHP) ไม่ต้องแก้ไฟล์นี้
 */
#pbh-header,
#hj-footer {
  --jxhf-accent: #f5a9c7;
  --jxhf-accent-rgb: 245,169,199;
  --jxhf-accent-light: #ffd9e7;
  --jxhf-accent-light-rgb: 255,217,231;
}

/* ================= HEADER ================= */
/* =========================================================
   VARIABLES
========================================================= */
#pbh-header {
  --pink: var(--jxhf-accent);
  --pink-light: var(--jxhf-accent-light);
  --pink-border: rgba(var(--jxhf-accent-rgb),.34);
  --pink-hover: rgba(var(--jxhf-accent-rgb),.10);
  --black: #050505;
  --black-2: #0b0b0b;
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999999;
  background: linear-gradient(180deg, #030303 0%, #090909 100%);
  border-bottom: 1px solid
    rgba(var(--jxhf-accent-rgb),.20);
  box-shadow: 0 8px 35px
    rgba(0,0,0,.55);
}
/* =========================================================
   PINK DIVIDER
========================================================= */
#pbh-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--jxhf-accent-rgb),.85) 12%, var(--jxhf-accent) 50%, rgba(var(--jxhf-accent-rgb),.85) 88%, transparent 100%);
  box-shadow: 0 0 10px
    rgba(var(--jxhf-accent-rgb),.35);
}
/* =========================================================
   MAIN HEADER
========================================================= */
#pbh-header .pbh-main {
  width: min(calc(100% - 40px), 1450px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* =========================================================
   LOGO
========================================================= */
#pbh-header .pbh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
#pbh-header .pbh-logo img {
  display: block;
  width: auto;
  max-width: 185px;
  height: 52px;
  object-fit: contain;
}
/* =========================================================
   DESKTOP MENU
========================================================= */
#pbh-header .pbh-desktop-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
#pbh-header .pbh-desktop-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #f5f5f5;
  font-family: var(--font-sans, "Prompt", "Noto Sans Thai", sans-serif);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 9px;
  transition: color .25s ease, background .25s ease;
}
#pbh-header .pbh-desktop-menu a:hover {
  color: var(--pink-light);
  background: var(--pink-hover);
}
/* MENU UNDERLINE */
#pbh-header .pbh-desktop-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  transform: translateX(-50%);
  transition: width .25s ease;
}
#pbh-header .pbh-desktop-menu a:hover::after {
  width: 55%;
}
/* =========================================================
   SEARCH FORM
========================================================= */
#pbh-header .pbh-search-form {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.045);
  border: 1px solid
    var(--pink-border);
  border-radius: 22px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
#pbh-header .pbh-search-form:focus-within {
  border-color: rgba(var(--jxhf-accent-rgb),.72);
  box-shadow: 0 0 0 3px
    rgba(var(--jxhf-accent-rgb),.07);
}
/* INPUT */
#pbh-header .pbh-search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 16px;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans, "Prompt", "Noto Sans Thai", sans-serif);
  font-size: 14px;
}
#pbh-header .pbh-search-form input::placeholder {
  color: rgba(var(--jxhf-accent-light-rgb),.55);
}
/* SEARCH BUTTON */
#pbh-header .pbh-search-form button {
  width: 46px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}
#pbh-header .pbh-search-form svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--pink-light);
  stroke-width: 1.8;
}
/* =========================================================
   DESKTOP SEARCH
========================================================= */
#pbh-header .pbh-desktop-search {
  position: relative;
  width: 250px;
  margin-left: auto;
  flex-shrink: 0;
}
/* =========================================================
   DESKTOP RESULTS
========================================================= */
#pbh-header .pbh-desktop-results {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  display: none;
  padding: 6px;
  background: rgba(8,8,8,.98);
  border: 1px solid
    var(--pink-border);
  border-radius: 13px;
  box-shadow: 0 15px 35px
    rgba(0,0,0,.65);
}
#pbh-header .pbh-desktop-results.active {
  display: block;
}
/* =========================================================
   SEARCH RESULTS
========================================================= */
#pbh-header .pbh-result-item {
  display: block;
  padding: 11px 13px;
  color: #fff;
  font-family: var(--font-sans, "Prompt", "Noto Sans Thai", sans-serif);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  border-radius: 8px;
}
#pbh-header .pbh-result-item:hover {
  color: var(--pink-light);
  background: var(--pink-hover);
}
#pbh-header .pbh-result-status {
  padding: 13px;
  color: rgba(255,255,255,.62);
  font-family: var(--font-sans, "Prompt", "Noto Sans Thai", sans-serif);
  font-size: 13px;
  text-align: center;
}
/* =========================================================
   MOBILE BUTTONS
========================================================= */
#pbh-header .pbh-mobile-button {
  display: none;
  width: 43px;
  height: 43px;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid
    var(--pink-border);
  border-radius: 11px;
  background: rgba(var(--jxhf-accent-rgb),.06);
  cursor: pointer;
}
/* MENU */
#pbh-header #pbh-menu-toggle {
  flex-direction: column;
  gap: 5px;
}
#pbh-header #pbh-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: var(--pink-light);
  transition: transform .25s ease, opacity .25s ease;
}
/* MENU ACTIVE */
#pbh-header #pbh-menu-toggle.active
span:nth-child(1) {
  transform: translateY(7px)
    rotate(45deg);
}
#pbh-header #pbh-menu-toggle.active
span:nth-child(2) {
  opacity: 0;
}
#pbh-header #pbh-menu-toggle.active
span:nth-child(3) {
  transform: translateY(-7px)
    rotate(-45deg);
}
/* SEARCH ICON */
#pbh-header #pbh-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
}
#pbh-header #pbh-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--pink-light);
  stroke-width: 1.8;
}
/* =========================================================
   MOBILE MENU PANEL
========================================================= */
#pbh-header .pbh-mobile-panel {
  display: none;
  width: min(calc(100% - 24px), 700px);
  margin: 0 auto;
  padding: 0 0 14px;
}
#pbh-header .pbh-mobile-panel.open {
  display: block;
  animation: pbhSlide .22s ease;
}
/* MOBILE MENU */
#pbh-header .pbh-mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#pbh-header .pbh-mobile-panel nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: #f5f5f5;
  font-family: var(--font-sans, "Prompt", "Noto Sans Thai", sans-serif);
  font-size: 15px;
  text-decoration: none;
  background: rgba(255,255,255,.035);
  border: 1px solid
    rgba(var(--jxhf-accent-rgb),.10);
  border-radius: 10px;
}
#pbh-header .pbh-mobile-panel nav a:hover {
  color: var(--pink-light);
  background: rgba(var(--jxhf-accent-rgb),.09);
}
/* =========================================================
   MOBILE SEARCH PANEL
========================================================= */
#pbh-header .pbh-mobile-search-panel {
  display: none;
  width: min(calc(100% - 24px), 700px);
  margin: 0 auto;
  padding: 0 0 14px;
}
/*
   IMPORTANT: Search panel is NOT fixed.
   It stays directly below the header.
*/
#pbh-header .pbh-mobile-search-panel.open {
  display: block;
  animation: pbhSlide .22s ease;
}
/* MOBILE SEARCH RESULTS */
#pbh-header .pbh-mobile-results {
  position: relative;
  margin-top: 7px;
  display: none;
  padding: 6px;
  background: rgba(8,8,8,.98);
  border: 1px solid
    var(--pink-border);
  border-radius: 13px;
  box-shadow: 0 15px 35px
    rgba(0,0,0,.55);
}
#pbh-header .pbh-mobile-results.active {
  display: block;
}
/* =========================================================
   ANIMATION
========================================================= */
@keyframes pbhSlide {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1100px) {
  #pbh-header .pbh-main {
    width: calc(100% - 30px);
    gap: 12px;
  }
  #pbh-header .pbh-logo img {
    max-width: 165px;
    height: 48px;
  }
  #pbh-header .pbh-desktop-menu {
    gap: 1px;
  }
  #pbh-header .pbh-desktop-menu a {
    padding: 0 9px;
    font-size: 14px;
  }
  #pbh-header .pbh-desktop-search {
    width: 210px;
  }
}
/* =========================================================
   MOBILE ONLY
========================================================= */
@media (max-width: 767px) {
  #pbh-header .pbh-main {
    position: relative;
    width: calc(100% - 24px);
    min-height: 68px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 43px 1fr 43px;
    align-items: center;
    gap: 0;
  }
  /* LEFT MENU */
  #pbh-header #pbh-menu-toggle {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  /* CENTER LOGO */
  #pbh-header .pbh-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
  }
  #pbh-header .pbh-logo img {
    max-width: 155px;
    height: 45px;
  }
  /* RIGHT SEARCH */
  #pbh-header #pbh-search-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  /* HIDE DESKTOP */
  #pbh-header .pbh-desktop-menu, #pbh-header .pbh-desktop-search {
    display: none;
  }
}
/* =========================================================
   SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
  #pbh-header .pbh-main {
    min-height: 64px;
    grid-template-columns: 41px 1fr 41px;
  }
  #pbh-header .pbh-mobile-button {
    width: 41px;
    height: 41px;
  }
  #pbh-header .pbh-logo img {
    max-width: 145px;
    height: 42px;
  }
}
/* =========================================================
   VERY SMALL MOBILE
========================================================= */
@media (max-width: 360px) {
  #pbh-header .pbh-logo img {
    max-width: 132px;
    height: 39px;
  }
}
/* =========================================================
   BOX SIZING
========================================================= */
#pbh-header, #pbh-header *, #pbh-header *::before, #pbh-header *::after {
  box-sizing: border-box;
}


/* ================= FOOTER ================= */
#hj-footer, #hj-footer * {
  box-sizing: border-box;
}
#hj-footer {
  --pink: var(--jxhf-accent);
  --pink-light: var(--jxhf-accent-light);
  width: 100%;
  margin: 0;
  color: #f5f5f5;
  font-family: var(--font-sans, "Prompt", "Noto Sans Thai", sans-serif);
  background: linear-gradient(180deg, #090909 0%, #030303 100%);
  border-top: 1px solid rgba(var(--jxhf-accent-rgb),.22);
}
/* =========================
   MAIN
========================= */
#hj-footer .hj-footer-inner {
  width: min(calc(100% - 40px), 1200px);
  margin: 0 auto;
  padding: 34px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* =========================
   LOGO
========================= */
#hj-footer .hj-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#hj-footer .hj-footer-logo img {
  display: block;
  width: auto;
  max-width: 185px;
  height: 52px;
  object-fit: contain;
}
/* =========================
   DESCRIPTION
========================= */
#hj-footer .hj-footer-desc {
  max-width: 620px;
  margin: 14px auto 22px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}
/* =========================
   MENU
========================= */
#hj-footer .hj-footer-nav {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  align-items: center;
  justify-content: center;
  gap: 4px;
}
#hj-footer .hj-footer-nav a {
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
#hj-footer .hj-footer-nav a:hover {
  color: var(--pink-light);
  background: rgba(var(--jxhf-accent-rgb),.07);
}
/* =========================
   BOTTOM
========================= */
#hj-footer .hj-footer-bottom {
  width: min(calc(100% - 40px), 1200px);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.38);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
/* =========================
   TABLET
========================= */
@media (max-width: 900px) {
  #hj-footer .hj-footer-inner {
    width: calc(100% - 30px);
    padding: 30px 0 24px;
  }
  #hj-footer .hj-footer-logo img {
    max-width: 165px;
    height: 48px;
  }
  #hj-footer .hj-footer-nav {
    max-width: 650px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 4px 8px;
  }
}
/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  #hj-footer .hj-footer-inner {
    width: calc(100% - 28px);
    padding: 27px 0 22px;
  }
  #hj-footer .hj-footer-logo img {
    max-width: 155px;
    height: 45px;
  }
  #hj-footer .hj-footer-desc {
    max-width: 420px;
    margin: 12px auto 20px;
    font-size: 13px;
    line-height: 1.7;
  }
  #hj-footer .hj-footer-nav {
    max-width: 430px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px 8px;
  }
  #hj-footer .hj-footer-nav a {
    min-height: 40px;
    padding: 0 5px;
    font-size: 13px;
  }
  #hj-footer .hj-footer-bottom {
    width: calc(100% - 28px);
    min-height: 54px;
    font-size: 11px;
  }
}
/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 360px) {
  #hj-footer .hj-footer-nav {
    gap: 3px;
  }
  #hj-footer .hj-footer-nav a {
    font-size: 12.5px;
  }
}

/* ================= WORDMARK (เว็บที่ยังไม่ได้อัปโลโก้) ================= */
.pbh-logo .pbh-wordmark,
.hj-footer-logo .pbh-wordmark {
  font-family: var(--font-display, var(--font-sans, "Prompt", sans-serif));
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 52px;
  color: #fff;
  white-space: nowrap;
}
.pbh-logo .pbh-wordmark em,
.hj-footer-logo .pbh-wordmark em {
  font-style: normal;
  color: var(--jxhf-accent);
  text-shadow: 0 0 12px rgba(var(--jxhf-accent-rgb), .55);
}
