/* ============================================================
   MCATiers v3.0 — Player Card System (mctiers-style)
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   NEW CARD v3 — Full mctiers layout
════════════════════════════════════════════════════════════ */
.player-card-v3 {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1),
              box-shadow .2s ease, border-color .2s;
}
.player-card-v3:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px var(--accent-glow);
}

/* ── Main row: rank panel + info ── */
.card-v3-main {
  display: flex;
  align-items: stretch;
  min-height: 88px;
}

/* ── RANK PANEL (left colored block) ── */
.card-rank-panel {
  flex-shrink: 0;
  width: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 0;
}
/* Rank backgrounds */
.rank-gold   { background: linear-gradient(135deg, #b8860b, #d4a020, #f5c518); }
.rank-silver { background: linear-gradient(135deg, #505050, #787878, #a0a0a0); }
.rank-bronze { background: linear-gradient(135deg, #6b3a00, #8b5a28, #a87040); }
.rank-dark   { background: linear-gradient(135deg, #141820, #1c2430, #242e40); }

/* Rank number */
.card-rank-number {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.03em;
  z-index: 2;
}
/* #4+ rank numbers are smaller */
.rank-dark .card-rank-number {
  color: rgba(255,255,255,0.55);
  font-size: 1.3rem;
}

/* Skin image — rises from bottom */
.card-v3-skin {
  width: 90px;
  height: auto;
  max-height: 110px;
  object-fit: cover;
  object-position: top;
  image-rendering: pixelated;
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: -4px;
  filter: drop-shadow(-3px 0 6px rgba(0,0,0,.5));
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.player-card-v3:hover .card-v3-skin {
  transform: translateY(-6px) scale(1.04);
}

/* ── INFO section (right) ── */
.card-v3-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.875rem 1rem 0.875rem 0.875rem;
}
.card-v3-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-v3-name.neon {
  /* Real neon: text glows outward, parent overflow must allow it */
  overflow: visible !important;
  animation: neonTube 3s ease-in-out infinite;
}
/* Real neon tube flicker */
@keyframes neonTube {
  0%,100% { filter: brightness(1); }
  91%     { filter: brightness(0.82); }
  92%     { filter: brightness(1.18); }
  94%     { filter: brightness(0.88); }
  95%     { filter: brightness(1.12); }
}
/* Neon name - contained glow */
.card-v3-name.neon { overflow: visible; }
.card-retired-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .1rem .4rem;
  border-radius: 4px;
  background: rgba(71,85,105,.35);
  color: #94a3b8;
  border: 1px solid #475569;
  flex-shrink: 0;
}

/* Title row */
.card-v3-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.card-v3-title-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-v3-points {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text3);
}

/* ── TIERS ROW (bottom) ── */
.card-v3-tiers {
  border-top: 1px solid var(--border);
  padding: 0.6rem 1rem 0.6rem 0.875rem;
  background: rgba(0,0,0,.15);
}
.card-v3-tiers-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.card-v3-tiers-inner::-webkit-scrollbar { display: none; }

/* ── Tier badge (icon + label) ── */
.tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  cursor: help;
}
.tier-badge-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.tier-badge:hover .tier-badge-circle {
  transform: scale(1.2) translateY(-1px);
}
.tier-badge-circle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
}
.tier-badge-label {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Tier badge ring colors per tier */
.tc-HT1 .tier-badge-circle { border-color:#c4873d; }
.tc-LT1 .tier-badge-circle { border-color:#8b5e3c; }
.tc-HT2 .tier-badge-circle { border-color:#00e5ff; }
.tc-LT2 .tier-badge-circle { border-color:#00bcd4; }
.tc-HT3 .tier-badge-circle { border-color:#ffd700; }
.tc-LT3 .tier-badge-circle { border-color:#b8860b; }
.tc-HT4 .tier-badge-circle { border-color:#d0d0d0; }
.tc-LT4 .tier-badge-circle { border-color:#909090; }
.tc-HT5 .tier-badge-circle { border-color:#cd7f32; }
.tc-LT5 .tier-badge-circle { border-color:#8b5a2b; }

/* Tier label colors */
.tc-HT1 .tier-badge-label { color:#c4873d; }
.tc-LT1 .tier-badge-label { color:#a07050; }
.tc-HT2 .tier-badge-label { color:#00e5ff; }
.tc-LT2 .tier-badge-label { color:#00bcd4; }
.tc-HT3 .tier-badge-label { color:#ffd700; }
.tc-LT3 .tier-badge-label { color:#d4a020; }
.tc-HT4 .tier-badge-label { color:#e0e0e0; }
.tc-LT4 .tier-badge-label { color:#b0b0b0; }
.tc-HT5 .tier-badge-label { color:#cd7f32; }
.tc-LT5 .tier-badge-label { color:#a07040; }

/* ════════════════════════════════════════════════════════════
   OLD TIER CIRCLES (used in profile modal)
════════════════════════════════════════════════════════════ */
.tier-circle {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid; flex-shrink: 0; overflow: hidden;
  position: relative; cursor: help;
  background: rgba(0,0,0,.45);
  transition: transform .15s;
}
.tier-circle:hover { transform: scale(1.2) translateY(-2px); z-index: 5; }
.tier-circle img { width: 14px; height: 14px; object-fit: contain; image-rendering: pixelated; }
.tier-circle-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.95); color: #fff; font-size: .62rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 5px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s; z-index: 20;
}
.tier-circle:hover .tier-circle-tooltip { opacity: 1; }

.tc-HT1{ border-color:#c4873d; padding: 4px;}
.tc-LT1{ border-color:#8b5e3c; padding: 4px;}
.tc-HT2{ border-color:#00e5ff; padding: 4px;}
.tc-LT2{ border-color:#00bcd4; padding: 4px;}
.tc-HT3{ border-color:#ffd700; padding: 4px; }
.tc-LT3{ border-color:#b8860b; padding: 4px;}
.tc-HT4{ border-color:#e0e0e0; padding: 4px;}
.tc-LT4{ border-color:#b0b0b0; padding: 4px;}
.tc-HT5{ border-color:#cd7f32; padding: 4px;}
.tc-LT5{ border-color:#8b5a2b; padding: 4px;}

/* ── Responsive ── */
@media(max-width:480px){
  .card-rank-panel { width: 90px; }
  .card-v3-skin    { width: 72px; }
  .card-rank-number{ font-size: 1.2rem; }
  .card-v3-name    { font-size: 1rem; }
  .tier-badge-circle { width: 30px; height: 30px; }
  .tier-badge-circle img { width: 16px; height: 16px; }
}
