/* ============================================
   FLOATING BUBBLES — Collapsible drawer
   Desktop: half-circle tab on left edge
   Mobile:  notch tab at bottom-center
   Global — all public pages
   ============================================ */

/* ---- Toast notification ---- */
.lb-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #111;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;
}
.lb-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================
   DESKTOP — Left edge drawer
   ============================================ */

@media (min-width: 768px) {

  .landing-bubbles {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 9000;
  }

  /* Half-circle tab — always visible at left edge */
  .lb-tab {
    flex-shrink: 0;
    width: 22px;
    height: 56px;
    border-radius: 0 32px 32px 0;
    background: #1A7A4A;
    border: 2px solid rgba(255,255,255,0.55);
    border-left: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 3px 0 12px rgba(0,0,0,0.22);
    transition: width .2s ease, background .2s ease;
    z-index: 1;
  }

  .lb-tab:hover {
    width: 28px;
    background: #145C38;
  }

  .lb-tab-icon {
    transition: transform .32s cubic-bezier(.16,1,.3,1);
    flex-shrink: 0;
  }

  .landing-bubbles.lb-expanded .lb-tab-icon {
    transform: rotate(180deg);
  }

  /* Bubble list — hidden off-left by default */
  .lb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-14px);
    transition: opacity .22s ease, transform .3s cubic-bezier(.16,1,.3,1);
  }

  .landing-bubbles.lb-expanded .lb-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  /* Individual bubbles */
  .lb-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    width: 48px;
    border-radius: 24px;
    padding: 0 13px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    transition: width .28s cubic-bezier(.16,1,.3,1),
                box-shadow .2s ease,
                transform .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    cursor: pointer;
    border: none;
    font-family: inherit;
  }

  .lb-bubble:hover {
    width: 172px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateX(4px);
  }

  .lb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
  }

  .lb-label {
    font-size: .8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity .15s ease .05s;
    pointer-events: none;
  }

  .lb-bubble:hover .lb-label { opacity: 1; }

  /* Colors */
  .lb-whatsapp  { background: #1a8a4e; color: #fff; }
  .lb-register  { background: #145C38; color: #fff; }
  .lb-dashboard { background: #1A7A4A; color: #fff; }
  .lb-share     { background: #0369a1; color: #fff; }
  .lb-youtube   { background: #cc0000; color: #fff; }
  .lb-facebook  { background: #1565c5; color: #fff; }

  /* Icon colors */
  .lb-whatsapp .lb-icon,
  .lb-register .lb-icon,
  .lb-dashboard .lb-icon,
  .lb-share .lb-icon,
  .lb-youtube .lb-icon,
  .lb-facebook .lb-icon  { color: rgba(255,255,255,.95); }
  /* Label colors */
  .lb-whatsapp .lb-label,
  .lb-register .lb-label,
  .lb-dashboard .lb-label,
  .lb-share .lb-label,
  .lb-youtube .lb-label,
  .lb-facebook .lb-label { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
}


/* ============================================
   MOBILE — Always-visible bottom nav
   No toggle needed — just a permanent bottom bar
   ============================================ */

@media (max-width: 767px) {

  .landing-bubbles {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
  }

  /* Tab arrow hidden on mobile — bottom nav is always visible */
  .lb-tab {
    display: none;
  }

  /* Bottom nav — always shown */
  .lb-list {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: 8px 4px max(10px, env(safe-area-inset-bottom));
    /* Always visible — override any JS-added expanded state */
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Mobile bubble items */
  .lb-bubble {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    text-decoration: none;
    color: #64748b;
    transition: color .15s ease;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    min-width: 0;
  }

  .lb-bubble:hover,
  .lb-bubble:active { color: #1A7A4A; }

  .lb-whatsapp  { color: #1a8a4e; }
  .lb-youtube   { color: #cc0000; }
  .lb-facebook  { color: #1565c5; }
  .lb-share     { color: #0369a1; }
  .lb-register  { color: #1A7A4A; }
  .lb-dashboard { color: #1A7A4A; }

  .lb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lb-label {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  /* Push page content up so bottom nav doesn't cover it */
  body:has(.landing-bubbles) {
    padding-bottom: 72px;
  }

  /* Push Nara chatbot above the bottom nav */
  #nara-widget {
    bottom: 84px !important;
  }
}
