:root, [data-md-color-scheme="default"] {
  --md-primary-color: #0d0914 !important;
  --md-primary-color--dark: #000000 !important;
  --md-accent-color: #8e35ff !important;

  --md-default-bg-color: #121016 !important;
  --md-default-bg-color--light: #17151d !important;
  --md-default-fg-color: #e2daeb !important;
  --md-default-fg-color--light: #9e93aa !important;

  --md-card-bg-color: #17151d !important;
  --md-card-bg-color--active: #201c29 !important;
  --md-code-bg-color: #1a1722 !important;

  --md-typeset-border-color: rgba(142, 53, 255, 0.15) !important;
}

::-webkit-scrollbar-thumb {
  background: #2a1f3d;
  border: 1px solid #3d2b59;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e35ff;
}

h1 {
  color: #ffc825 !important;
  border-bottom: 2px dashed rgba(142, 53, 255, 0.4) !important;
}

h2 {
  color: #dfc5ff !important;
  border-bottom: 1px solid rgba(142, 53, 255, 0.15);
}

h3 {
  color: #a476f5 !important;
}

.trinket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.trinket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #17151d !important;
  border: 1px solid rgba(142, 53, 255, 0.15) !important;
  border-radius: 8px;
  text-decoration: none !important;
  color: #e2daeb !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
}

.trinket-card:hover {
  transform: translateY(-3px);
  border-color: #ffc825 !important;
  background: #201c29 !important;
  box-shadow: 0 8px 16px rgba(142, 53, 255, 0.2);
}

.trinket-card img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  margin-bottom: 8px;
}

.trinket-card span {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  color: #dfc5ff;
  transition: color 0.2s ease;
}

.trinket-card:hover span {
  color: #ffc825;
}

/* Version & Status Badges */
.badge,
.badge-modern,
.badge-legacy,
.badge-accent,
.badge-info {
  display: inline-block;
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: middle;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.badge {
  background: rgba(142, 53, 255, 0.18);
  color: #dfc5ff;
  border: 1px solid rgba(142, 53, 255, 0.45);
}

.badge-modern {
  background: rgba(46, 204, 113, 0.15);
  color: #4ade80;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.badge-legacy {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-accent {
  background: rgba(142, 53, 255, 0.18);
  color: #dfc5ff;
  border: 1px solid rgba(142, 53, 255, 0.45);
}

.badge-info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-sm {
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 4px;
}

.badge-lg {
  font-size: 13px;
  padding: 4px 10px;
  margin-left: 10px;
}

.trinket-card .badge,
.trinket-card .badge-modern,
.trinket-card .badge-legacy,
.trinket-card .badge-accent,
.trinket-card .badge-info {
  margin-left: 0 !important;
  margin-top: 6px;
  font-size: 10px;
}

/* ==========================================================================
   Version & Status Badges
   ========================================================================== */

.badge,
.badge-modern,
.badge-legacy,
.badge-accent,
.badge-info {
  display: inline-block;
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: normal;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.badge {
  background: rgba(142, 53, 255, 0.18);
  color: #dfc5ff;
  border: 1px solid rgba(142, 53, 255, 0.45);
}

.badge-modern {
  background: rgba(46, 204, 113, 0.15);
  color: #4ade80;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.badge-legacy {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-accent {
  background: rgba(142, 53, 255, 0.18);
  color: #dfc5ff;
  border: 1px solid rgba(142, 53, 255, 0.45);
}

.badge-info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-sm {
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 4px;
}

.badge-lg {
  font-size: 13px;
  padding: 4px 10px;
  margin-left: 10px;
}

.trinket-card .badge,
.trinket-card .badge-modern,
.trinket-card .badge-legacy,
.trinket-card .badge-accent,
.trinket-card .badge-info,
.item-card .badge,
.item-card .badge-modern,
.item-card .badge-legacy,
.item-card .badge-accent,
.item-card .badge-info {
  margin-left: 0 !important;
  margin-top: 6px;
  font-size: 10px;
}

.version-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin: 8px 0 16px 0;
  font-size: 13px;
  color: var(--md-default-fg-color--light, #9e93aa);
}

.version-strip .badge,
.version-strip .badge-modern,
.version-strip .badge-legacy,
.version-strip .badge-accent,
.version-strip .badge-info {
  margin: 0 !important;
}

/* Version-specific Badges */
.badge-v1-16 {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.45) !important;
}

.badge-v1-18 {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.45) !important;
}

.badge-v1-20 {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
}

.badge-v1-21 {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
}

.badge-v26,
.badge-modern {
  background: rgba(46, 204, 113, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(46, 204, 113, 0.45) !important;
}
