/* =============================================
   YOGA CHIC® — Unified Navigation System
   Phase 3 — 2026-03-07
   PillNav (desktop) + StaggeredMenu (mobile)
   ============================================= */

:root {
  --yc-turquoise: #33CCCC;
  --yc-dark: #344033;
  --yc-cream: #FAF9F7;
  --yc-white: #ffffff;
  --yc-black: #060010;
}

/* =============================================
   Hide old VamTam/Elementor header + mobile menu — 2026-03-08
   ============================================= */
.vamtam-sticky-header,
#vamtam-menu-container,
header.elementor-element[data-id="a61c7a1"],
.vamtam-burger-menu,
.vamtam-mobile-header,
.elementor-menu-toggle,
nav.elementor-nav-menu--dropdown {
  display: none !important;
}

/* =============================================
   Responsive visibility
   ============================================= */
@media (max-width: 768px) {
  .yc-desktop-only { display: none !important; }
}
@media (min-width: 769px) {
  .yc-mobile-only { display: none !important; }
}

/* =============================================
   PillNav — Desktop (>=769px)
   ============================================= */
.yc-pill-nav-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
  font-family: 'Gotu', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Hidden by default — GSAP reveals after loader finishes */
  visibility: hidden;
  opacity: 0;
}

.yc-pill-nav {
  display: flex;
  align-items: center;
  width: max-content;
  pointer-events: auto;
  gap: 4px;
}

/* Logo circle — white, 1.5x taller than nav bar */
.yc-pill-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  padding: 6px;
  margin-right: 6px;
  box-sizing: border-box;
}

.yc-pill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

/* Nav items container — dark frosted glass */
.yc-pill-nav-items {
  display: flex;
  align-items: center;
  background: rgba(6, 0, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  height: 42px;
  padding: 0 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.yc-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Li needs relative for active dot positioning */
.yc-pill-list > li {
  position: relative;
}

/* Individual pill */
.yc-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 9999px;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: visible;
  white-space: nowrap;
  height: 34px;
  box-sizing: border-box;
}

/* Legacy clip wrapper — inert, kept in HTML */
.yc-pill-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* Hover fill — pill-shaped, scales from bottom via scaleY */
.yc-hover-circle {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--yc-turquoise);
  pointer-events: none;
  will-change: transform;
  transform-origin: center bottom;
  transform: scaleY(0);
}

/* Label stack — holds original + hover labels */
.yc-label-stack {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 1;
}

.yc-pill-label {
  display: block;
  position: relative;
  z-index: 1;
  color: #ffffff;
  opacity: 1;
  will-change: transform;
}

/* Hover label — dark text readable against turquoise circle */
.yc-pill-label-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--yc-black);
  z-index: 1;
  will-change: transform, opacity;
}

/* Old pseudo-element active dot — disabled, replaced by JS-created sibling */
.yc-pill.is-active::after {
  display: none;
}

/* Active dot — sibling of .yc-pill, lives in <li>, outside clip-path */
.yc-pill-active-dot {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--yc-turquoise);
  border-radius: 50%;
  pointer-events: none;
}

/* Accueil pill — hide on desktop since logo already links home */
.yc-pill[data-home] {
  display: none;
}

/* =============================================
   StaggeredMenu — Mobile (<=768px)
   ============================================= */

/* Toggle button — flush against left edge, tab shape */
.yc-sm-toggle {
  position: fixed;
  top: 16px;
  left: 0;
  right: auto;
  z-index: 9960;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yc-cream, #FAF9F7);
  border: none;
  cursor: pointer;
  padding: 10px 12px 10px 14px;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
  font-family: 'Gotu', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--yc-dark);
  min-width: 44px;
  min-height: 44px;
  pointer-events: auto;
  letter-spacing: 0.3px;
  /* Hidden by default — GSAP reveals after loader finishes */
  visibility: hidden;
  opacity: 0;
}

.yc-sm-toggle-text {
  position: relative;
  overflow: hidden;
  display: inline-block;
  min-width: 38px;
  text-align: right;
}

.yc-sm-toggle-label {
  display: block;
  will-change: transform, opacity;
}

/* Plus/X icon — pushed right so it stays visible when button slides left */
.yc-sm-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 4px;
}

.yc-sm-icon-line {
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  will-change: transform;
}

.yc-sm-icon-h {
  width: 24px;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.yc-sm-icon-v {
  width: 2px;
  height: 24px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Prelayers — color panels that slide in first */
/* Initial off-screen position set by GSAP (not CSS transform) to avoid conflicts */
.yc-sm-prelayer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9940;
  will-change: transform;
  pointer-events: none;
}

/* Main panel */
/* Initial off-screen position set by GSAP (not CSS transform) to avoid conflicts */
.yc-sm-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  width: clamp(260px, 38vw, 420px);
  height: 100vh;
  height: 100dvh;
  z-index: 9950;
  background: var(--yc-white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
  pointer-events: none;
}

.yc-sm-panel.is-open {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .yc-sm-panel {
    width: 100%;
  }
}

.yc-sm-panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 100px 40px 40px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .yc-sm-panel-inner {
    padding: 100px 24px 32px;
  }
}

/* Menu items */
.yc-sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sm-counter;
}

.yc-sm-item-wrap {
  overflow: hidden;
  counter-increment: sm-counter;
  padding: 4px 0;
}

.yc-sm-item-wrap::before {
  content: "0" counter(sm-counter);
  display: block;
  font-size: 11px;
  font-family: 'Gotu', sans-serif;
  color: var(--yc-dark);
  opacity: var(--sm-num-opacity, 0);
  margin-bottom: 2px;
  padding-left: 4px;
  letter-spacing: 1px;
}

.yc-sm-item {
  display: block;
  text-decoration: none;
  color: var(--yc-dark);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  line-height: 1.1;
  padding: 4px 0;
  transition: color 0.2s ease;
  will-change: transform;
}

.yc-sm-item:hover,
.yc-sm-item:focus {
  color: var(--yc-turquoise);
}

.yc-sm-item.is-active {
  color: var(--yc-turquoise);
}

/* Language switcher — pill buttons at bottom of StaggeredMenu */
.yc-sm-lang {
  margin-top: auto;
  padding: 20px 0 30px;
}

.yc-sm-lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.yc-sm-lang-list li a {
  display: block;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--yc-dark, #344033);
  background: rgba(51, 204, 204, 0.1);
  border: 1px solid transparent;
  font-family: 'Gotu', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.2s ease;
}

.yc-sm-lang-list li.current-lang a {
  background: var(--yc-turquoise, #33CCCC);
  color: #fff;
}

.yc-sm-lang-list li a:hover {
  border-color: var(--yc-turquoise, #33CCCC);
}

/* Hide toggle text — icon-only on mobile for clean look */
.yc-sm-toggle-text {
  display: none;
}

/* Hide VamTam + HFE scroll-to-top — replaced by lang pill UP arrow */
#scroll-to-top,
.vamtam-scroll-to-top,
#scroll-to-top-text,
.hfe-scroll-to-top-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Hide old floating Polylang switcher on mobile — now inside StaggeredMenu */
@media (max-width: 768px) {
  #yc-lang-switcher {
    display: none !important;
  }
}

/* Click-away overlay (behind panel, covers rest of page) */
.yc-sm-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9939;
  display: none;
}

.yc-sm-backdrop.is-visible {
  display: block;
}

/* =============================================
   My Account Button — Desktop (PillNav)
   ============================================= */
.yc-pill-nav .yc-pill-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 34px !important;
  padding: 0 !important;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #33CCCC !important;
  border: none !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-decoration: none;
  margin-left: 8px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.yc-pill-nav .yc-pill-account:hover {
  background: #2ab5b5 !important;
  box-shadow: 0 2px 12px rgba(51, 204, 204, 0.25);
  color: #ffffff !important;
}

.yc-acct-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* =============================================
   My Account Button — Mobile (StaggeredMenu)
   ============================================= */
.yc-sm-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 9999px;
  background: rgba(51, 204, 204, 0.1);
  border: 1px solid rgba(51, 204, 204, 0.25);
  color: var(--yc-dark, #344033);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 12px;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.yc-sm-account:hover {
  background: rgba(51, 204, 204, 0.18);
  border-color: rgba(51, 204, 204, 0.4);
}

.yc-sm-account .yc-acct-icon {
  width: 16px;
  height: 16px;
  stroke: var(--yc-dark, #344033);
}
