/* ==========================================
   SPYDR FLOATING DOCK
========================================== */

.dock {

    position: fixed;

    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 7px;

    background: rgba(23, 23, 23, 0.78);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 999px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.45),
        0 0 18px rgba(124,58,237,.08);

    z-index: 99999;

    transition:
        opacity .25s ease,
        transform .25s ease;

}

/* Hide while a game/app is open */

.dock.hidden{

    opacity:0;

    pointer-events:none;

    transform:
        translate(-50%,20px);

}

/* ==========================================
   BUTTONS
========================================== */

.dock button{

    position:relative;

    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    outline:none;

    border-radius:12px;

    background:transparent;

    color:var(--gray);

    cursor:pointer;

    transition:
        transform .22s cubic-bezier(.22,1,.36,1),
        background .22s,
        color .22s,
        box-shadow .22s;

}

.dock button i{

    font-size:21px;

    transition:inherit;

}

/* ==========================================
   HOVER
========================================== */

.dock button:hover{

    color:var(--white);

    background:rgba(255,255,255,.06);

    transform:
        translateY(-6px)
        scale(1.08);

    box-shadow:
        0 0 18px rgba(124,58,237,.18);

}

.dock button:hover i{

    transform:scale(1.05);

}

/* ==========================================
   ACTIVE PAGE
========================================== */

.dock button.active{

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #7c3aed
        );

    color:white;

    box-shadow:
        0 0 20px rgba(124,58,237,.28);

}

.dock button.active::after{

    content:"";

    position:absolute;

    left:50%;
    bottom:-6px;

    transform:translateX(-50%);

    width:5px;
    height:5px;

    border-radius:50%;

    background:white;

}

/* ==========================================
   TOOLTIPS
========================================== */

.dock button::before{

    content:attr(data-title);

    position:absolute;

    bottom:58px;

    left:50%;

    transform:
        translate(-50%,8px);

    padding:6px 10px;

    border-radius:8px;

    background:rgba(0,0,0,.9);

    color:white;

    font-size:12px;

    font-family:"JetBrains Mono", monospace;

    white-space:nowrap;

    opacity:0;

    pointer-events:none;

    transition:
        opacity .18s,
        transform .18s;

}

.dock button:hover::before{

    opacity:1;

    transform:
        translate(-50%,0);

}

/* ==========================================
   CLICK
========================================== */

.dock button:active{

    transform:
        scale(.95);

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width:700px){

    .dock{

        bottom:12px;

        gap:4px;

        padding:6px;

    }

    .dock button{

        width:40px;
        height:40px;

    }

    .dock button i{

        font-size:19px;

    }

}


/* GLOBAL MENU COLLAPSE / EXPAND */
.dock {
  gap: 7px;
}
.dock a {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--gray, #bdbdbd);
  text-decoration: none;
}
.dock a i {
  font-size: 21px;
}
.dock a:hover {
  color: var(--white, #fff);
  background: rgba(255,255,255,.07);
  transform: translateY(-4px);
}
.dock a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #3f5efb), #7c3aed);
}
.dock-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  margin-left: 4px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: #e9e9ee;
  background: rgba(255,255,255,.055);
  font: 600 10px "JetBrains Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.dock-menu-toggle i { font-size: 17px; }
.dock-menu-toggle:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
}
.dock-expand-tab {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #f4f2fa;
  background: rgba(18,18,22,.92);
  box-shadow: 0 10px 35px rgba(0,0,0,.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
}
.dock-expand-tab i { font-size: 16px; }
.dock-expand-tab:hover { background: rgba(42,42,50,.96); }
body.global-menu-collapsed .dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
}
body.global-menu-collapsed .dock-expand-tab {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (max-width:700px) {
  .dock { gap: 3px; padding: 5px; max-width: calc(100vw - 16px); }
  .dock a { width: 37px; height: 39px; }
  .dock a i { font-size: 18px; }
  .dock-menu-toggle { flex-basis: 38px; width: 38px; height: 39px; min-height: 39px; margin-left: 3px; }
  .dock-menu-toggle i { font-size: 19px; }
  .dock-expand-tab { bottom: 12px; min-height: 40px; }
}
