/* My Team dock button (myteam-dock.js).
   Mobile dock only: a raised circle in the Kyoto gradient that sits a little
   above the bar, holding the My Team icon or a chosen club kit. On desktop
   the wrapper disappears (display: contents), so the sidebar is unchanged. */

.dock-fab { display: contents; }
.dock-fab-kit { display: none; }

@media (max-width: 1099px) {
  /* My Team takes the centre of the five dock slots:
     Home · Elite Meta · My Team · Supercomputer · More. */
  .pro-nav-tabs #tabLanding { order: 1; }
  .pro-nav-tabs #tabTopTeams { order: 2; }
  .pro-nav-tabs #tabHome { order: 3; }
  .pro-nav-tabs #tabChatFPL { order: 4; }
  .pro-nav-tabs .tactical-mobile-more,
  .pro-nav-tabs #tacticalMoreNav { order: 5; }

  .pro-nav-tabs #tabHome {
    position: relative;
    overflow: visible;
    justify-content: flex-end;
    gap: 0;
    padding-bottom: 8px;
  }

  .pro-nav-tabs #tabHome .dock-fab {
    position: absolute;
    top: -22px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-gradient, linear-gradient(90deg, #c21500, #ffc500));
    color: #fff;
    /* A ring in the bar's colour lifts the circle off the bar. */
    box-shadow: 0 0 0 4px var(--nav-bg, #0d0d0f), 0 10px 22px rgb(194 21 0 / 0.35);
    transform: translateX(-50%);
    transition: transform var(--transition, 180ms ease), box-shadow var(--transition, 180ms ease);
    pointer-events: none;
  }

  .pro-nav-tabs #tabHome .dock-fab svg {
    width: 27px;
    height: 27px;
    stroke: #fff;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.35));
  }

  .pro-nav-tabs #tabHome .dock-fab.has-kit svg { display: none; }

  .pro-nav-tabs #tabHome .dock-fab.has-kit .dock-fab-kit {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    /* A fine light edge and a shadow keep any club's colours readable
       against the red-to-gold circle (Arsenal red, Wolves gold, …). */
    filter: drop-shadow(0 0 0.75px rgb(255 255 255 / 0.95)) drop-shadow(0 0 0.75px rgb(255 255 255 / 0.95)) drop-shadow(0 3px 4px rgb(0 0 0 / 0.5));
  }

  .pro-nav-tabs #tabHome > span:not(.dock-fab) {
    position: relative;
    z-index: 1;
  }

  /* The circle is the active indicator; drop the thin line used by the others. */
  .pro-nav-tabs #tabHome.active::before { display: none; }

  .pro-nav-tabs #tabHome.active .dock-fab {
    box-shadow: 0 0 0 4px var(--nav-bg, #0d0d0f), 0 0 0 6px rgb(255 197 0 / 0.55), 0 10px 24px rgb(194 21 0 / 0.45);
  }

  .pro-nav-tabs #tabHome.active > span:not(.dock-fab) { color: var(--text-primary, #fff); }

  .pro-nav-tabs #tabHome:active .dock-fab { transform: translateX(-50%) scale(0.94); }

  .pro-nav-tabs #tabHome:focus-visible { outline: none; }
  .pro-nav-tabs #tabHome:focus-visible .dock-fab {
    box-shadow: 0 0 0 4px var(--nav-bg, #0d0d0f), 0 0 0 7px var(--tac-cyan, #22d3ee);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-nav-tabs #tabHome .dock-fab { transition: none; }
}

/* Account section: a Home / Away / Third switch above the club grid, which
   reuses the kit tiles. */
.dock-strips {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 12px;
  border: 1px solid var(--border, rgba(255,255,255,.09));
  border-radius: 999px;
  background: var(--input-bg, #111113);
}
.dock-icon-picker .dock-strip {
  min-width: 72px;
  min-height: 34px;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-secondary, #c7c7cb) !important;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.dock-icon-picker .dock-strip:hover { color: var(--text-primary, #fff) !important; }
/* !important: the site's generic button skin otherwise paints over the selected state. */
.dock-icon-picker .dock-strip.is-on { background: var(--brand-gradient, linear-gradient(90deg, #c21500, #ffc500)) !important; color: #fff !important; text-shadow: 0 1px 1px rgb(0 0 0 / .35); }
.dock-icon-picker .dock-strip:focus-visible { outline: 2px solid var(--tac-cyan, #22d3ee); outline-offset: 2px; }
.dock-icon-option .dock-icon-preview {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient, linear-gradient(90deg, #c21500, #ffc500));
  color: #fff;
}
.dock-icon-option .dock-icon-preview img { width: 30px; height: 30px; object-fit: contain; }
.dock-icon-option.is-selected {
  border-color: var(--tac-cyan, #22d3ee) !important;
  box-shadow: inset 0 0 0 1px var(--tac-cyan, #22d3ee);
}
