
/* =========================================================
   Program category attention treatment — v2
   Closer to the approved reference mockup.
   TEST-only candidate — 2026-08-24
   ========================================================= */

.programs-section .program-tabs{
  --km-gold:#ffd640;
  --km-gold-soft:rgba(255,214,64,.34);
  --km-green:#0b5f49;
  position:relative;
  isolation:isolate;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:12px !important;
  width:min(820px,calc(100% - 44px));
  margin:58px auto 44px !important;
  padding:10px !important;
  border-radius:30px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(230,187,46,.26);
  box-shadow:
    0 10px 30px rgba(60,46,10,.08),
    0 0 0 7px rgba(255,222,101,.10),
    0 0 34px rgba(255,203,25,.24);
  overflow:visible;
}

/* headline from the reference: compact and close to the selector */
.programs-section .program-tabs::before{
  content:var(--program-category-prompt,"☝ KÉRJÜK, ELŐSZÖR VÁLASSZ KATEGÓRIÁT!");
  position:absolute;
  left:50%;
  top:-36px;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100vw - 28px);
  text-align:center;
  font-weight:1000;
  letter-spacing:.018em;
  color:#0b5f49;
  font-size:clamp(15px,1.55vw,21px);
  line-height:1.15;
  text-shadow:
    0 1px 0 #fff,
    0 0 13px rgba(255,204,30,.24);
  white-space:nowrap;
}

/* small sparkles around the whole control, like the approved visual */
.programs-section .program-tabs .km-program-sparkles{
  position:absolute;
  inset:-16px -24px;
  z-index:0;
  pointer-events:none;
  overflow:visible;
}
.programs-section .program-tabs .km-program-sparkles::before,
.programs-section .program-tabs .km-program-sparkles::after{
  content:"✦  ✧  ✦";
  position:absolute;
  color:#ffd640;
  font-size:18px;
  letter-spacing:24px;
  opacity:.86;
  filter:drop-shadow(0 0 7px rgba(255,197,20,.85));
  animation:kmSparkle 2.2s ease-in-out infinite;
}
.programs-section .program-tabs .km-program-sparkles::before{
  left:28%;
  top:-9px;
}
.programs-section .program-tabs .km-program-sparkles::after{
  right:3%;
  bottom:-8px;
  animation-delay:1.05s;
}

/* button base */
.programs-section .program-tab{
  position:relative;
  z-index:2;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:72px;
  width:100% !important;
  padding:13px 24px !important;
  border-radius:999px !important;
  border:3px solid #126a51 !important;
  font-size:clamp(14px,1.35vw,19px) !important;
  font-weight:1000 !important;
  line-height:1.14 !important;
  letter-spacing:.004em;
  text-align:center !important;
  box-shadow:
    0 8px 20px rgba(23,80,58,.12),
    0 0 0 5px rgba(255,214,64,.18),
    0 0 22px rgba(255,197,22,.42) !important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease !important;
  animation:kmProgramPulse 2.45s ease-in-out infinite;
  overflow:hidden;
}

/* remove colored emoji look: use monochrome inline SVG people icons */
.programs-section .program-tab::before{
  content:"" !important;
  display:block;
  flex:0 0 auto;
  width:42px;
  height:32px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  filter:drop-shadow(0 2px 1px rgba(0,0,0,.05));
}

.programs-section #program-tab-private::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cg fill='%230b5f49'%3E%3Ccircle cx='22' cy='12' r='9'/%3E%3Ccircle cx='42' cy='12' r='9'/%3E%3Cpath d='M5 41c0-11 7-18 17-18s17 7 17 18H5z'/%3E%3Cpath d='M25 41c0-11 7-18 17-18s17 7 17 18H25z'/%3E%3C/g%3E%3C/svg%3E");
}
.programs-section #program-tab-bookable::before{
  width:46px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 44'%3E%3Cg fill='%230b5f49'%3E%3Ccircle cx='16' cy='12' r='8'/%3E%3Ccircle cx='36' cy='10' r='9'/%3E%3Ccircle cx='56' cy='12' r='8'/%3E%3Cpath d='M1 41c0-10 6-17 15-17s15 7 15 17H1z'/%3E%3Cpath d='M19 41c0-12 7-20 17-20s17 8 17 20H19z'/%3E%3Cpath d='M41 41c0-10 6-17 15-17s15 7 15 17H41z'/%3E%3C/g%3E%3C/svg%3E");
}

.programs-section .program-tab:not(.active){
  background:
    linear-gradient(180deg,#fffefb,#fffdf7) !important;
  color:#0b5f49 !important;
}

.programs-section .program-tab.active{
  background:
    linear-gradient(105deg,#0b5a3d 0%,#14784f 46%,#0b5a3d 100%) !important;
  color:#fff !important;
  border-color:#f1cd47 !important;
  box-shadow:
    0 9px 24px rgba(7,77,53,.23),
    0 0 0 5px rgba(255,214,64,.28),
    0 0 28px rgba(255,196,26,.60) !important;
}
.programs-section .program-tab.active::before{
  filter:brightness(0) invert(1) drop-shadow(0 2px 1px rgba(0,0,0,.08));
}

/* slow moving light streak across active button */
.programs-section .program-tab.active::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-34%;
  width:22%;
  height:160%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
  transform:skewX(-18deg);
  animation:kmLightSweep 4.8s linear infinite;
  pointer-events:none;
}

/* Desktop inward arrows — unmistakable 2 + 2 arrangement */
.programs-section .program-tabs .km-program-attention-arrow{
  position:absolute;
  z-index:4;
  pointer-events:none;
  width:76px;
  height:54px;
  filter:
    drop-shadow(0 0 3px #fff)
    drop-shadow(0 0 9px rgba(255,193,0,.98))
    drop-shadow(0 0 17px rgba(255,193,0,.72));
}

/* two clearly separated arrows on the LEFT */
.programs-section .program-tabs .km-program-attention-arrow-left-top{
  left:-88px;
  top:-14px;
  transform:rotate(28deg);
}
.programs-section .program-tabs .km-program-attention-arrow-left-bottom{
  left:-88px;
  bottom:-14px;
  transform:rotate(-28deg);
}

/* two clearly separated arrows on the RIGHT */
.programs-section .program-tabs .km-program-attention-arrow-right-top{
  right:-88px;
  top:-14px;
  transform:rotate(-28deg);
}
.programs-section .program-tabs .km-program-attention-arrow-right-bottom{
  right:-88px;
  bottom:-14px;
  transform:rotate(28deg);
}

.programs-section .program-tabs .km-program-attention-arrow::before{
  content:"";
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  animation:kmArrowInward 1.15s ease-in-out infinite;
}

/* LEFT arrows point right, toward the category buttons */
.programs-section .program-tabs .km-program-attention-arrow-left-top::before,
.programs-section .program-tabs .km-program-attention-arrow-left-bottom::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 54'%3E%3Cg fill='none' stroke='%23ffc400' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 27h68'/%3E%3Cpath d='M57 9l19 18-19 18'/%3E%3C/g%3E%3C/svg%3E");
}

/* RIGHT arrows point left, toward the category buttons */
.programs-section .program-tabs .km-program-attention-arrow-right-top::before,
.programs-section .program-tabs .km-program-attention-arrow-right-bottom::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 54'%3E%3Cg fill='none' stroke='%23ffc400' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M85 27H17'/%3E%3Cpath d='M35 9L16 27l19 18'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes kmArrowInward{
  0%,100%{opacity:.76;translate:0 0;scale:.94;}
  50%{opacity:1;translate:8px 0;scale:1.08;}
}
.programs-section .program-tabs .km-program-attention-arrow-right-top::before,
.programs-section .program-tabs .km-program-attention-arrow-right-bottom::before{
  animation-name:kmArrowInwardRight;
}
@keyframes kmArrowInwardRight{
  0%,100%{opacity:.76;translate:0 0;scale:.94;}
  50%{opacity:1;translate:-8px 0;scale:1.08;}
}

/* hover remains elegant, not oversized */
.programs-section .program-tab:hover,
.programs-section .program-tab:focus-visible{
  transform:translateY(-2px) scale(1.012) !important;
  filter:brightness(1.025);
  box-shadow:
    0 12px 28px rgba(15,83,59,.20),
    0 0 0 6px rgba(255,214,64,.33),
    0 0 34px rgba(255,190,0,.72) !important;
  outline:none;
}

@keyframes kmProgramPulse{
  0%,100%{
    box-shadow:
      0 8px 20px rgba(23,80,58,.12),
      0 0 0 4px rgba(255,214,64,.16),
      0 0 17px rgba(255,197,22,.34);
  }
  50%{
    box-shadow:
      0 9px 24px rgba(23,80,58,.17),
      0 0 0 7px rgba(255,214,64,.28),
      0 0 30px rgba(255,190,0,.62);
  }
}
@keyframes kmLightSweep{
  0%{left:-36%;}
  58%,100%{left:122%;}
}
@keyframes kmArrowPulse{
  0%,100%{transform:scale(.92);opacity:.74;}
  50%{transform:scale(1.10);opacity:1;}
}
@keyframes kmSparkle{
  0%,100%{opacity:.28;transform:scale(.88) rotate(-3deg);}
  50%{opacity:1;transform:scale(1.10) rotate(3deg);}
}

/* user has noticed the selector: keep glow, calm the animation */
.programs-section .program-tabs.km-category-seen .program-tab{
  animation-duration:4.2s;
}
.programs-section .program-tabs.km-category-seen .km-program-attention-arrow-left::before,
.programs-section .program-tabs.km-category-seen .km-program-attention-arrow-right::before{
  animation-duration:2.4s;
  opacity:.72;
}


@media (min-width:761px) and (max-width:1040px){
  .programs-section .program-tabs{
    width:min(760px,calc(100% - 180px));
  }
  .programs-section .program-tabs .km-program-attention-arrow{
    width:64px;
    height:46px;
  }
  .programs-section .program-tabs .km-program-attention-arrow-left-top,
  .programs-section .program-tabs .km-program-attention-arrow-left-bottom{left:-72px;}
  .programs-section .program-tabs .km-program-attention-arrow-right-top,
  .programs-section .program-tabs .km-program-attention-arrow-right-bottom{right:-72px;}
}

/* =========================
   MOBILE — separate layout
   ========================= */
@media (max-width:760px){
  .programs-section .program-tabs{
    grid-template-columns:1fr !important;
    gap:12px !important;
    width:calc(100% - 26px);
    margin:72px auto 32px !important;
    padding:10px !important;
    border-radius:24px;
  }

  .programs-section .program-tabs::before{
    top:-54px;
    width:calc(100% - 4px);
    white-space:normal;
    font-size:17px;
    line-height:1.18;
  }

  .programs-section .program-tab{
    min-height:68px;
    padding:13px 15px !important;
    border-width:3px !important;
    font-size:15px !important;
    gap:10px;
  }

  .programs-section .program-tab::before{
    width:36px;
    height:29px;
  }
  .programs-section #program-tab-bookable::before{width:40px;}

  .programs-section .program-tabs .km-program-attention-arrow{
    display:none !important;
  }

  .programs-section .program-tabs .km-program-sparkles{
    inset:-9px -6px;
  }

  .programs-section .program-tabs .km-program-sparkles::before{
    left:8%;
    top:-4px;
  }
  .programs-section .program-tabs .km-program-sparkles::after{
    right:0;
    bottom:-4px;
  }
}

@media (max-width:390px){
  .programs-section .program-tabs{
    width:calc(100% - 18px);
    margin-top:78px !important;
  }
  .programs-section .program-tab{
    min-height:64px;
    font-size:14px !important;
    padding:12px 12px !important;
  }
}

@media (prefers-reduced-motion:reduce){
  .programs-section .program-tab,
  .programs-section .program-tab.active::after,
  .programs-section .program-tabs .km-program-attention-arrow::before,
  .programs-section .program-tabs .km-program-sparkles::before,
  .programs-section .program-tabs .km-program-sparkles::after{
    animation:none !important;
  }
}
