/* ==========================================================================
   Quickbar + Floating LINE (Stable Final)
   File: assets/css/quickbar.css

   Includes:
   1) Mobile Bottom Quickbar (3 buttons) - only <= 768px
   2) Floating LINE button - desktop + mobile (mobile lifts above quickbar)

   Principles:
   - Do not pollute style.css
   - Do not affect desktop layout
   - Strong shape constraints to prevent "oval" issues
   ========================================================================== */


/* ========================================================================== */
/* 1) Mobile Quickbar (Bottom 3 Buttons)                                      */
/* ========================================================================== */

/* Default: hidden everywhere (desktop/tablet included) */
.mj-mobile-quickbar{
  display: none !important;
}

/* Mobile only */
@media (max-width: 768px){
  .mj-mobile-quickbar{
    display: flex !important;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;

    gap: 10px;
    padding: 10px;
    border-radius: 16px;

    background: rgba(10, 8, 18, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.25);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  }

  .mj-mobile-quickbar__item{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: rgba(245, 240, 255, 0.95);
    background: linear-gradient(145deg, rgba(122, 0, 223, 0.18), rgba(212, 175, 55, 0.10));
    border: 1px solid rgba(255,255,255,0.10);

    /* prevent long labels from breaking layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mj-mobile-quickbar__item:active{
    transform: translateY(1px);
  }

  .mj-mobile-quickbar__badge{
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;

    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.30);
    color: rgba(255, 240, 210, 0.95);
  }
}


/* ========================================================================== */
/* 2) Floating LINE Button (Desktop + Mobile)                                 */
/* ========================================================================== */

/* Base (desktop + mobile) */
.floating-line{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;

  /* Hard constraints to guarantee a perfect circle */
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;

  /* Ensure border/padding never distorts the circle */
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #06C755;
  border: 3px solid rgba(209, 179, 106, 0.95);
  box-shadow:
    0 0 12px rgba(209,179,106,0.55),
    0 6px 18px rgba(0,0,0,0.45);

  text-decoration: none;
  cursor: pointer;

  /* Avoid iOS highlight */
  -webkit-tap-highlight-color: transparent;
}

/* The icon image inside */
.floating-line img{
  width: 60%;
  height: 60%;
  display: block;
  object-fit: contain;
}

/* Desktop hover */
@media (hover: hover){
  .floating-line:hover{
    transform: scale(1.06);
    box-shadow:
      0 0 18px rgba(209,179,106,0.85),
      0 10px 22px rgba(0,0,0,0.55);
  }
}

/* Mobile: lift above the bottom quickbar */
@media (max-width: 768px){
  .floating-line{
    width: 56px;
    height: 56px;
    bottom: 96px; /* above mj-mobile-quickbar */
    right: 16px;
  }
}

/* Optional: reduce on very small screens */
@media (max-width: 360px){
  .floating-line{
    width: 52px;
    height: 52px;
    bottom: 92px;
    right: 14px;
  }
}
