/* ==========================================================================
   1. The Main Tier List Container
   ========================================================================== */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Clean separation between the rows */
  max-width: 900px;
  margin: 20px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. The Row Structure
   ========================================================================== */
.tier-row {
  display: flex;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden; /* Keeps the sharp edge on the left label */
  min-height: 80px;
  border: 1px solid #262626;
  transition: border-color 0.2s ease;
}

.tier-row:hover {
  border-color: #404040; /* Subtle highlight when looking at a row */
}

/* ==========================================================================
   3. The Custom Tier Labels (The Left Column)
   ========================================================================== */
.label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  font-size: 24px;
  font-weight: 900;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.15);
}

/* Iconic Tier Color Palette */
.s-tier { background: linear-gradient(135deg, #ff7f7f, #ff3b3b); }
.a-tier { background: linear-gradient(135deg, #ffbf7f, #ff8811); }
.b-tier { background: linear-gradient(135deg, #ffdf7f, #dca100); }
.c-tier { background: linear-gradient(135deg, #ffff7f, #bebe00); }
.d-tier { background: linear-gradient(135deg, #7fff7f, #00aa00); }

/* ==========================================================================
   4. The Content Area (Where Cards Dynamic Drop In)
   ========================================================================== */
.tier-content {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 12px;
  padding: 10px 16px;
  flex-grow: 1;
}

/* ==========================================================================
   5. The Overhauled Person Cards (Horizontal Layout)
   ========================================================================== */
.person-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background-color: #262626;
  border: 1px solid #333333;
  border-radius: 6px;
  width: 190px;
  cursor: grab;
  
  /* Smooth animation setup */
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color 0.2s ease, 
              box-shadow 0.2s ease;
}

/* Premium Hover Effect */
.person-card:hover {
  background-color: #333333;
  border-color: #4a4a4a;
  transform: translateY(-3px) scale(1.02); /* Pop up slightly */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* The Fixed-Cap Image */
.person-card img {
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* The Text Layout */
.person-card span {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
