/* ==========================================================================
   macOS Dock — Frosted glass shelf, icons magnify upward above it
   Reference: macOS Yosemite dock — shelf stays fixed, icons pop up
   ========================================================================== */

.dock-wrap {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dock-shelf {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 0 10px;
  position: relative;
}

/* 3D glass shelf — perspective trapezoid, wider at bottom */
.dock-shelf::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  right: -8px;
  height: 90px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px 14px 22px 22px;
  /* 3D perspective — top edge narrower than bottom */
  clip-path: polygon(4% 0%, 96% 0%, 100% 100%, 0% 100%);
  box-shadow:
    0 -1px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  z-index: -1;
}

/* --- Dock Separator --- */
.dock-sep {
  width: 1px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 8px 5px;
  align-self: flex-end;
  flex-shrink: 0;
}

/* --- Dock Item --- */
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  padding: 0 2px 3px;
}

.dock-item__icon-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: bottom center;
  will-change: transform;
}

.dock-item__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Glossy shine overlay */
.dock-item__icon-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0));
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

/* --- Tooltip --- */
.dock-item__tooltip {
  position: absolute;
  bottom: calc(100% + 50px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  z-index: 10;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 3px 10px;
  font-family: 'PP Neue Montreal', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.dock-item__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 20, 20, 0.92);
}

.dock-item:hover .dock-item__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Running indicator dot --- */
.dock-item__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.dock-item--active .dock-item__dot {
  opacity: 1;
}

/* --- Bounce animation --- */
@keyframes dock-bounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-24px); }
  40%  { transform: translateY(0); }
  55%  { transform: translateY(-12px); }
  70%  { transform: translateY(0); }
  85%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.dock-item--bouncing .dock-item__icon-wrap {
  animation: dock-bounce 0.6s ease-out;
}

/* --- Mobile: hide dock --- */
@media screen and (max-width: 767px) {
  .dock-wrap {
    display: none !important;
  }
}

/* Bottom padding so content doesn't hide behind dock */
.footer-2007 {
  padding-bottom: 130px;
}

.artist-page .artist-section:last-child {
  padding-bottom: 120px;
}
