.deck-cost-bars {
  display: flex;
  align-items: flex-end;
  height: 160px;
  gap: 6px;
  padding: 0 10px;
  margin-bottom: 8px;
}

.cost-column {
  position: relative;
  width: 20px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  background-color: transparent;
}

.cost-column .bar-parallel,
.cost-column .bar-universal {
  width: 100%;
  display: block;
}

.bar-parallel {
  background-color: var(--parallel-color, purple);
}

.bar-universal {
  background-color: yellow;
}

.count-label {
  text-align: center;
  font-size: 12px;
  margin-top: 4px;
  font-weight: bold;
}

.cost-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
}


/*___________________________________________________________________________________*/
/*DeckStats*/

.deck-stats {
  width: 330px !important;
  height: 256px;
  background-color: var(--element-bg);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  padding: .2rem .1rem;
  color: var(--text-color);
  flex-shrink: 0;
}

.deck-stats-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 330px;
  box-sizing: border-box;
}

.deck-type-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2 equal-width columns */
  gap: 8px 16px; /* vertical and horizontal spacing */
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #444;
  background-color: var(--element-bg, #2a2a2a);
  border-radius: 6px;
  margin-bottom: 2px;
}


.deck-type-breakdown .type-box {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.deck-stats-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px; /* match image width */
  height: 135px; /* match image height */
  margin: 0 auto;
  padding: 2px 0px 23px 0px;
}

.deck-cost-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  padding: 0 7px;
  z-index: 1;
    background-image: url('https://paralleldeckchecker.com/wp-content/uploads/2025/05/StatsBack4.png');
    background-size: 300px 100px;      
  background-position: bottom;
  background-repeat: no-repeat;
  position: relative;
}

/* Default fallback (when no Paragon is selected) */
.bar-parallel {
  background-color: #888;
}

/* Theme colors for Paragons (these override when class is added) */
.bar-parallel.theme-default { background-color: #888; }
.bar-parallel.theme-kathari { background-color: #BEDDEF; }
.bar-parallel.parallel-color.theme-earthen { background-color: #6C8531; }
.bar-parallel.parallel-color.theme-shroud { background-color: #5F2994; }
.bar-parallel.parallel-color.theme-marcolian { background-color: #CE0817; }
.bar-parallel.parallel-color.theme-augencore { background-color: #E16F39; }

.color-box.parallel-color.theme-kathari { background-color: #BEDDEF; }
.color-box.parallel-color.theme-earthen { background-color: #6C8531; }
.color-box.parallel-color.theme-shroud { background-color: #5F2994; }
.color-box.parallel-color.theme-marcolian { background-color: #CE0817; }
.color-box.parallel-color.theme-augencore { background-color: #E16F39; }

.deck-stats-overlay {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  z-index: 2;
  pointer-events: none; /* ensures user can interact with bars behind it */
}

.cost-column {
  position: relative;
  display: flex;
    height: 100px;
  flex-direction: column;
  justify-content: flex-end;
  width: 30px;
  margin: 0 2px;
}

.bar-parallel,
.bar-universal {
  width: 100%;
  position: absolute;
  bottom: 0;
  transition: height 0.3s ease;
  border-radius: 2px 2px 0 0;
}

.bar-parallel {
  background-color: var(--parallel-color, #888);
  z-index: 2; /* higher */
}

.bar-universal {
  background-color: #ffd700;
  z-index: 1; /* lower */
}

.bar-universal[data-tooltip]::after,
.bar-parallel[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.bar-universal:hover::after,
.bar-parallel:hover::after {
  opacity: 1;
}

.count-text {
  font-weight: 600;
  margin: 0 6px;
}

.type-box .type-icon {
  height: 18px;
  width: auto;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}


.type-heading-icon {
  
  height: 24px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

.decklist-icon {
  width: auto;
  height: 27px;
  margin-right: 4px;
  vertical-align: middle;
}

.count-label {
  position: absolute;
  top: -20px; /* adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: bold;
  color: #fff; /* or darker if bar is light */
  z-index: 4; /* higher than both bars */
  pointer-events: none; /* let clicks pass through */
}


.split-subtype-label {
  font-size: 11px;
  font-style: italic;
  color: #ccc;
  margin-top: 2px;
  text-align: center;
}


.cost-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
}

.count-universal {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 2px); /* Shift slightly down */
  font-size: 12px;
  font-weight: bold;
  color: black;
  z-index: 6;
  pointer-events: none;
}

.count-parallel {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 2px); /* Shift slightly down */
  font-size: 12px;
  font-weight: bold;
  color: white;
  z-index: 6;
  pointer-events: none;
}

.count-parallel {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cost-column:hover .count-parallel {
  opacity: 1;
}

.count-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: bold;
  color: white;
  z-index: 5;
  pointer-events: none;
}

.cost-column .count-label:empty {
  display: none;
}



.deck-color-key {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #444; /* thin line separator */
  margin-bottom: 3px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.deck-color-key .key-left,
.deck-color-key .key-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.parallel-color {
  background-color: var(--parallel-color, #888);
}

.universal-color {
  background-color: #f7b500; /* Universal yellow */
}