/* Badges Container */
.badges-container {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  gap: 15px;
  margin: 0 auto;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.badges-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 33px !important;
  width: 100%; 
}

/* Badges premium wrapper - contains lock and blur effects */
.badges-premium-wrapper {
  position: relative;
  width: 100%;
  min-height: 100px;
}

/* Only apply blur when locked (not unlocked) */
.badges-premium-wrapper:not(.unlocked) .badges-wrapper {
  filter: blur(4px);
}

.badges-premium-wrapper:not(.unlocked) .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  z-index: 10;
  color: var(--primary-color);
  filter: none !important;
  pointer-events: none;
}

.badges-premium-wrapper:not(.unlocked) .badges-unlock-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 9;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-premium-wrapper:not(.unlocked):hover .badges-unlock-tooltip {
  opacity: 1;
  visibility: visible;
}

/* General badges unlock tooltip that can be used outside the premium wrapper */
.badges-unlock-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Unlocked state - ensure no blur or lock elements show */
.badges-premium-wrapper.unlocked .badges-wrapper {
  filter: none;
}

.badges-premium-wrapper.unlocked .lock-icon,
.badges-premium-wrapper.unlocked .badges-unlock-tooltip {
  display: none;
}

@media (min-width: 769px) {
  .badges-wrapper {
    gap: 16px;
    justify-content: center;
    max-width: 100%;
  }
  

}

/* Badge Stacking Styles */
.stacked-badges-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}


.badge-stacks-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  background: #161616;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 20px;
}

@media (min-width: 769px) {
  .badge-stacks-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
  }
}

.badge-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  width: 200px;
}

.stacked-badge-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stacked-badge-display .progress-bar-with-badge {
  margin: 0;
}

/* Unavailable badge styling */
.progress-bar-with-badge.unavailable {
  opacity: 0.5;
  filter: grayscale(30%);
}

.progress-bar-with-badge.unavailable .progress-badge {
  opacity: 0.7;
}

/* Mobile responsiveness for badge stacks */
@media (max-width: 768px) {
  .stacked-badges-wrapper {
    margin-bottom: 12px;
  }
  
  .badge-stacks-container {
    gap: 16px;
  }
  
  .badge-stack {
    width: 180px;
    flex: 0 0 auto;
    gap: 14px;
  }
  
  .stack-header {
    gap: 6px;
  }
  
  .stack-title {
    font-size: 0.8em;
    min-width: 100px;
    font-weight: 300;
    letter-spacing: 0.15em;
  }
  
  .stack-arrow {
    width: 28px;
    height: 28px;
  }
  
  .stack-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Progress Bar with Badge */
.progress-bar-with-badge {
  position: relative;
  width: 64px;
  height: 64px;
  cursor: pointer;
  margin: 0 8px;
}

/* Desktop badge sizes - larger than mobile */
@media (min-width: 769px) {
  .progress-bar-with-badge {
    width: 80px;
    height: 80px;
    margin: 0 10px;
  }
}

.progress-bar-with-badge:hover .progress-percent-center {
  opacity: 1;
  visibility: visible;
}

.progress-badge {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: #222;
  z-index: 2;
  transition: opacity 0.2s;
}

/* Desktop badge image sizes */
@media (min-width: 769px) {
  .progress-badge {
    width: 50px;
    height: 50px;
  }
  
  .progress-bar-with-badge svg {
    transform: scale(1.25);
    transform-origin: center;
  }
  
  .progress-percent-center {
    font-size: 0.9em;
    padding: 5px 10px;
  }
}

.premium-content-blur-wrapper .progress-badge {
  filter: blur(4px);
}

/* Enhanced Badge Tooltip */
.badge-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    max-width: 175px;
    white-space: nowrap;
}

.badge-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.badge-tooltip.removing {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.badge-tooltip:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
    transition: opacity 0.3s ease;
}

/* Hide arrow when content is expanded */
.badge-tooltip:has(.badge-tooltip-content.expanded):after {
    opacity: 0;
    visibility: hidden;
}

.badge-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.badge-tooltip-name {
    font-weight: 600;
    color: #ffffff;
}

.badge-tooltip-arrow {
    width: 15px;
    height: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #ffffff;
    flex-shrink: 0;
}

.badge-tooltip-arrow:hover {
    color: var(--primary-color);
}

.badge-tooltip-arrow.expanded {
    transform: rotate(180deg);
}

.badge-tooltip-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;
    white-space: normal;
    text-align: left;
}

.badge-tooltip-content.expanded {
    max-height: 300px;
    padding-top: 8px;
}

.badge-tooltip-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.badge-tooltip-requirements {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.badge-tooltip-requirements strong {
    color: var(--secondary-color);
}

/* Scrollable badge tooltip container structure */
.badge-tooltip.scrollable-container {
    padding: 8px 0px 0px 0px; /* Remove all padding except top */
    display: flex;
    flex-direction: column;
}

/* Fixed header in scrollable container */
.badge-tooltip.scrollable-container .badge-tooltip-header {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 0px;
    flex-shrink: 0; /* Prevent header from shrinking */
}

/* Scrollable content area */
.badge-tooltip.scrollable-container .badge-tooltip-content {
    padding-left: 12px;
    padding-right: 6px; /* Reduced to account for scrollbar */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--semi-transparent-bg);
}

/* WebKit scrollbar styling for content in container */
.badge-tooltip.scrollable-container .badge-tooltip-content::-webkit-scrollbar {
    width: 6px;
}

.badge-tooltip.scrollable-container .badge-tooltip-content::-webkit-scrollbar-track {
    background: var(--semi-transparent-bg);
    border-radius: 3px;
}

.badge-tooltip.scrollable-container .badge-tooltip-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.badge-tooltip.scrollable-container .badge-tooltip-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

@media (max-width: 600px) {
  .badges-container {
    width: 100%;
  }

  .badges-wrapper {
    gap: 10px !important;
  }

  .badge-detail-back {
    left: 12px !important;
  }
}

@media (min-height: 1000px) {
  .badges-container {
    margin-top: 20px;
  }
}

/* Badge Progress Error Message Styles */
.badge-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  color: var(--text-color);
  opacity: 0.7;
}

.badge-message i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.badge-message p {
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}/* Badge Detail View Enhancements */
.badges-container {
  position: relative;
}

.badge-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.badges-wrapper {
  transition: filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.badges-container.detail-active .badges-wrapper {
  filter: blur(8px);
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.95);
  transition: filter 0.25s ease-out, opacity 0.25s ease-out, transform 0.25s ease-out;
}

.badge-detail-container {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.badges-container.detail-active .badge-detail-container {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.badge-detail-view {
  background: rgba(30, 30, 30, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  backdrop-filter: blur(12px);
}

.badge-detail-head {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.badge-detail-back {
  position: absolute;
  top: 10px;
  left: -52px;
  background: none;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.badge-detail-back:hover {
  transform: translateX(-2px);
}

.badge-detail-back svg {
  width: 24px;
  height: 24px;
}

.badge-detail-summary {
  margin-right: 200px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.badge-detail-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge-detail-summary h4 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--text-color);
  text-align: left;
}

.badge-detail-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.badge-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease, background-color 0.3s ease;
}

.badge-progress-text {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.badge-progress-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: white;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: left 0.4s ease, box-shadow 0.2s ease, width 0.2s ease;
  border-radius: 1px;
}

.badge-progress-track {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.badge-progress-track:hover .badge-progress-text {
  font-size: 1.2rem;
  transform: translate(-50%, -60%);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.95), 0 3px 6px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.badge-progress-track:hover .badge-progress-cursor {
  width: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.badge-earned-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-earned-pill--earned {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge-earned-pill--pending {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Arena God tier-specific earned pill styles */
.badge-earned-pill--arenagod-iron {
  background: rgba(128, 128, 128, 0.2);
  color: #808080;
  border: 1px solid rgba(128, 128, 128, 0.5);
}

.badge-earned-pill--arenagod-bronze {
  background: rgba(139, 69, 19, 0.2);
  color: #cd7f32;
  border: 1px solid rgba(139, 69, 19, 0.5);
}

.badge-earned-pill--arenagod-silver {
  background: rgba(220, 220, 220, 0.2);
  color: #dcdcdc;
  border: 1px solid rgba(220, 220, 220, 0.5);
}

.badge-earned-pill--arenagod-gold {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.5);
}

.badge-earned-pill--arenagod-platinum {
  background: rgba(70, 160, 180, 0.2);
  color: #46a0b4;
  border: 1px solid rgba(70, 160, 180, 0.5);
}

.badge-earned-pill--arenagod-emerald {
  background: rgba(80, 200, 120, 0.2);
  color: #50c878;
  border: 1px solid rgba(80, 200, 120, 0.5);
}

.badge-earned-pill--arenagod-diamond {
  background: rgba(100, 149, 237, 0.2);
  color: #6495ed;
  border: 1px solid rgba(100, 149, 237, 0.5);
}

.badge-earned-pill--arenagod-master {
  background: rgba(180, 50, 255, 0.2);
  color: #b432ff;
  border: 1px solid rgba(180, 50, 255, 0.5);
}

.badge-earned-pill--arenagod-grandmaster {
  background: rgba(64, 64, 64, 0.8);
  color: #ff6b35;
  border: 1px solid #ff6b35;
}

.badge-earned-pill--arenagod-challenger {
  background: rgba(59, 130, 246, 0.3);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.badge-earned-icon {
  font-size: 1rem;
}

.badge-earned-rate {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.badge-detail-art {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.badge-detail-art img {
  width: 180px;
  max-width: 100%;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
}

.badge-detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-detail-head .badge-detail-section {
  margin-right: 200px;
  padding-left: 0;
  margin-top: 24px;
}

.badge-detail-section h5 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-color);
  text-align: left;
}

.badge-detail-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 0.95rem;
  text-align: left;
}

.badge-detail-section--metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.badge-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.badge-metric--champions,
.badge-metric--champions.badge-metric--wrap {
  margin-bottom: 16px;
}

.badge-detail-section--metrics {
  margin-top: 16px;
}

.badge-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-metric-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
  text-align: left;
}

.badge-metric-value {
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}

.badge-metric-icons,
.badge-metric-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-lore-duos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.badge-lore-duo {
  display: flex;
  align-items: center;
  position: relative;
}

.badge-lore-duo-champions {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.badge-lore-duo-divider {
  width: 2px;
  height: 44px;
  background: #161616;
  flex-shrink: 0;
}

.badge-lore-duo-champion {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.badge-lore-duo-champion:hover {
  transform: scale(1.2);
}

.badge-lore-duo-status {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--secondary-color);
  background: #333;
  z-index: 2;
}

.badge-lore-duo-status.incomplete {
  border-color: #ef4444;
  color: #ef4444;
  font-size: 20px;
  font-weight: normal;
}

.badge-lore-duo-status.complete {
  border-color: #22c55e;
  color: #22c55e;
}

@media (max-width: 768px) {
  .badge-lore-duos-grid {
    gap: 12px;
  }

  .badge-lore-duo-champion {
    width: 28px;
    height: 28px;
  }

  .badge-lore-duo-divider {
    width: 2px;
    height: 36px;
  }

  .badge-lore-duo-status {
    width: 16px;
    height: 16px;
    font-size: 12px;
    bottom: -3px;
    right: -3px;
  }

  .badge-lore-duo-status.incomplete {
    font-size: 18px;
    font-weight: normal;
  }
}

.badge-champion-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.badge-champion-icon:hover {
  transform: scale(1.2);
}

.badge-champion-icon--pair {
  width: 30px;
  height: 30px;
}

.badge-champion-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-metric-empty {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.badge-metric-helper {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  .badge-detail-back {
    top: 12px;
    left: -48px;
  }

  .badge-detail-summary {
    padding-left: 0;
    margin-right: 0;
  }

  .badge-detail-head .badge-detail-section {
    margin-right: 0;
    padding-left: 0;
  }

  .badge-detail-art {
    position: static;
    margin: 0 auto 16px auto;
    display: block;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  .badge-detail-art img {
    width: 140px;
  }

  .badge-detail-view {
    padding: 20px 16px;
  }


  .badge-detail-section h5,
  .badge-detail-section p {
    text-align: center;
  }
}

/* Tooltip refresh */
.badge-tooltip {
  padding: 8px 12px;
  max-width: 200px;
  white-space: normal;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.badge-tooltip:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

.badge-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-tooltip-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
  flex: 1;
}

.badge-tooltip-arrow {
  width: 16px;
  height: 16px;
  animation: badgeTooltipPulse 1.2s ease-in-out infinite;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.badge-tooltip:hover .badge-tooltip-arrow {
  color: var(--primary-color);
}

@keyframes badgeTooltipPulse {
  0% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.6; }
}
.badge-detail-view {
  position: relative;
}
.badges-container.detail-active {
  align-items: stretch;
}

/* Performance optimizations for animations */
.badges-wrapper {
  will-change: filter, opacity, transform;
}

.badge-detail-container {
  will-change: opacity, transform;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .badges-container,
  .badges-wrapper,
  .badge-detail-container {
    transition: none !important;
  }
}

/* Mobile animation adjustments */
@media (max-width: 768px) {
  .badge-detail-container {
    transition-duration: 0.35s;
  }

  .badges-container.detail-active .badges-wrapper {
    transition-duration: 0.3s;
  }
}
