/* ==========================================================================
   MINIFIG & MINECRAFT AVATAR LOCKER / SHOP MODAL
   ========================================================================== */

.locker-modal-content {
  background: var(--bg-surface);
  border: 3px solid var(--accent-gem);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 860px;
  height: 85vh;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.locker-modal-header {
  height: 64px;
  padding: 0 24px;
  background: var(--bg-surface-elevated);
  border-bottom: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.locker-modal-header h2 {
  font-family: var(--font-mono);
  font-size: 20px;
  color: #fff;
}

.locker-gem-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid var(--accent-gem);
  color: var(--accent-gem);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Locker Body */
.locker-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.avatar-preview-pane {
  width: 280px;
  background: radial-gradient(circle at 50% 40%, #1e293b 0%, #0f172a 100%);
  border-right: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 16px;
  flex-shrink: 0;
}

.avatar-canvas-holder {
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid var(--lego-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 25px rgba(255, 213, 0, 0.25);
}

.avatar-title-display {
  text-align: center;
}

.avatar-title-display h3 {
  font-family: var(--font-mono);
  font-size: 22px;
  color: #fff;
}

.rank-highlight {
  font-size: 13px;
  color: var(--accent-aura);
  font-weight: 700;
}

/* Tabs & Item Grid */
.locker-tabs-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
}

.locker-category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.locker-tab-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-game);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.locker-tab-btn.active {
  background: var(--accent-gem);
  color: #0f172a;
  border-color: #fff;
  font-weight: 700;
}

.locker-items-grid {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.locker-item-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.locker-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gem);
}

.locker-item-card.equipped {
  border-color: var(--brand-primary);
  background: rgba(88, 204, 2, 0.15);
}

.item-icon-frame {
  font-size: 36px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-name {
  font-family: var(--font-game);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.item-status-btn {
  width: 100%;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}

.btn-equipped {
  background: var(--brand-primary);
  color: #fff;
}

.btn-owned {
  background: #334155;
  color: #94a3b8;
}

.btn-buy {
  background: var(--accent-gem);
  color: #0f172a;
}

/* Mobile Responsive Adjustments for Locker */
@media (max-width: 768px) {
  .locker-modal-content {
    width: 95%;
    max-height: 90vh;
    height: 90vh;
  }

  .locker-modal-header {
    height: 52px;
    padding: 0 14px;
  }

  .locker-modal-header h2 {
    font-size: 16px;
  }

  .locker-gem-pill {
    padding: 4px 10px;
    font-size: 13px;
  }

  .locker-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .avatar-preview-pane {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--border-subtle);
    padding: 10px;
    gap: 8px;
    flex-direction: row;
    justify-content: center;
    background: #0f172a;
  }

  .avatar-canvas-holder {
    width: 80px;
    height: 80px;
    border-width: 2px;
  }

  .avatar-title-display h3 {
    font-size: 16px;
    margin: 0;
  }

  .avatar-title-display {
    text-align: left;
  }

  .locker-category-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .locker-tab-btn {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .locker-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .locker-item-card {
    padding: 8px;
  }

  .item-icon-frame {
    font-size: 28px;
    height: 40px;
  }
}
