/* ==========================================================================
   Big Apple Sticky Admin Page Edit Menu
   ========================================================================== */

.bigapple-admin-sticky {
  position: fixed;
  right: 0;
  top: 180px;
  z-index: 9990;
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Push down if admin toolbar is active */
body.toolbar-tray-open.toolbar-horizontal .bigapple-admin-sticky {
  top: 220px;
}

/* Sticky Toggle Button (Icon Only) */
.bigapple-admin-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #1E1C1C;
  color: #DDE96E;
  border-radius: 22px 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: all 0.25s ease;
  user-select: none;
}

.bigapple-admin-toggle:hover {
  background: #282626;
  color: #DDE96E;
  border-color: rgba(221, 233, 110, 0.5);
  box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(221, 233, 110, 0.2);
  transform: translateX(-4px);
}

.admin-icon-pencil {
  width: 20px;
  height: 20px;
  color: #DDE96E;
  flex-shrink: 0;
}

/* Sticky Drawer */
.bigapple-admin-drawer {
  position: fixed;
  right: 0;
  top: 180px;
  min-width: 250px;
  max-width: 320px;
  background: rgba(24, 22, 22, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: 18px 0 0 18px;
  box-shadow: -10px 16px 40px rgba(0, 0, 0, 0.6);
  padding: 16px 18px 20px 18px;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

body.toolbar-tray-open.toolbar-horizontal .bigapple-admin-drawer {
  top: 220px;
}

.bigapple-admin-sticky.is-open .bigapple-admin-drawer {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.bigapple-admin-sticky.is-open .bigapple-admin-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Drawer Header */
.admin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.admin-drawer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9DB075;
}

.admin-drawer-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.admin-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: scale(1.08);
}

.admin-drawer-close svg {
  width: 10px;
  height: 10px;
}

/* Tabs List */
.admin-tabs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-tabs-list li {
  margin: 0;
  padding: 0;
}

.admin-tabs-list li a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.admin-tabs-list li a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #DDE96E;
  border-color: rgba(221, 233, 110, 0.3);
  transform: translateX(-3px);
}

.admin-tabs-list li.is-active a,
.admin-tabs-list li a.is-active {
  background: #DDE96E;
  color: #1E1C1C;
  font-weight: 700;
  border-color: #DDE96E;
}

.admin-tabs--secondary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .bigapple-admin-sticky {
    top: auto;
    bottom: 24px;
  }

  .bigapple-admin-toggle {
    padding: 8px 12px 8px 10px;
  }

  .admin-toggle-label {
    display: none;
  }

  .bigapple-admin-drawer {
    top: auto;
    bottom: 24px;
    right: 12px;
    left: 12px;
    max-width: none;
    border-radius: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}
