/* ==============================
  Floating section dock (site-wide)
============================== */
.one-floating-dock {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  pointer-events: none;
}

.one-floating-dock.has-sections {
  width: 188px;
  max-height: min(62vh, 520px);
  padding: 12px 10px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(18, 18, 18, 0.1);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
}

.one-floating-dock.has-sections::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.one-floating-dock.is-fabs-only {
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.one-floating-dock[hidden] {
  display: none !important;
}

.one-floating-dock > * {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.one-dock__heading {
  margin: 0 0 8px;
  padding: 0 6px;
  font-family: 'Pretendard', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
}

.one-dock__sections {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.one-dock__sections[hidden],
.one-dock__heading[hidden] {
  display: none !important;
}

.one-dock__sections::-webkit-scrollbar {
  display: none;
}

.one-dock__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #121212;
  font-family: 'Pretendard', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.one-dock__btn:hover,
.one-dock__btn:focus-visible {
  background: rgba(62, 103, 250, 0.08);
  border-color: rgba(62, 103, 250, 0.12);
  color: var(--blue, #3e67fa);
  outline: none;
}

.one-dock__btn.is-active {
  background: rgba(62, 103, 250, 0.12);
  border-color: rgba(62, 103, 250, 0.2);
  color: var(--blue, #3e67fa);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(62, 103, 250, 0.12);
}

.one-dock__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.one-dock__btn.is-active .one-dock__dot {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(62, 103, 250, 0.16);
}

.one-dock__btn:hover .one-dock__dot,
.one-dock__btn:focus-visible .one-dock__dot {
  opacity: 0.9;
}

.one-dock__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.one-dock__fabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.one-floating-dock.is-fabs-only .one-dock__fabs {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.one-floating-dock .one-fab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.one-floating-dock .one-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.one-floating-dock .one-fab.kakao {
  background: #f2da00;
  border-color: rgba(0, 0, 0, 0.06);
}

.one-floating-dock .one-fab__dot {
  font-size: 18px;
  color: #3a1d1d;
}

.one-floating-dock .one-fab img {
  width: 28px;
  height: 28px;
  aspect-ratio: 1 / 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .one-floating-dock.has-sections {
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 1200px) {
  .one-floating-dock.has-sections {
    right: max(14px, env(safe-area-inset-right, 0px));
    width: 172px;
  }

  .one-dock__btn {
    font-size: 12px;
    min-height: 36px;
  }
}

@media (max-width: 768px) {
  .one-floating-dock {
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .one-floating-dock.has-sections {
    width: auto;
    min-width: 156px;
    max-width: min(82vw, 300px);
    max-height: 48vh;
    border-radius: 18px;
  }

  .one-dock__fabs {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .one-floating-dock .one-fab {
    width: 50px;
    height: 50px;
    margin: 0;
  }

  .one-floating-dock .one-fab img {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .one-dock__btn,
  .one-dock__dot,
  .one-dock__label,
  .one-floating-dock .one-fab {
    transition: none;
  }
}
