/* ==========================================================================
   YATORO // DOTA 2 ESPORTS PORTFOLIO
   Stats Dashboard & Playstyle Section Stylesheet
   Animated Counters & Tactical Trait Matrix
   ========================================================================== */

/* Overall Stats Dashboard */
.stats-section {
  position: relative;
  padding: 130px 0;
  background-color: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.stat-counter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.stat-counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.stat-counter-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-teal);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7),
              0 0 25px -5px rgba(16, 231, 178, 0.2);
}

.stat-counter-card:hover::before {
  background: var(--radiant-teal);
}

.stat-counter-card.gold-stat:hover {
  border-color: var(--aegis-gold);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7),
              0 0 25px -5px var(--aegis-gold-glow);
}

.stat-counter-card.gold-stat:hover::before {
  background: var(--aegis-gold);
}

.stat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  color: var(--radiant-teal);
}

.stat-counter-card.gold-stat .stat-icon {
  color: var(--aegis-gold);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-counter-card.gold-stat .stat-number-wrap {
  color: var(--aegis-gold-light);
}

.stat-suffix {
  font-size: 0.6em;
  color: var(--radiant-teal);
}

.stat-counter-card.gold-stat .stat-suffix {
  color: var(--aegis-gold);
}

.stat-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Playstyle Section */
.playstyle-section {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #080a10 50%, var(--bg-primary) 100%);
}

.playstyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.playstyle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s var(--ease-spring);
}

.playstyle-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-teal);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.playstyle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.playstyle-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(16, 231, 178, 0.08);
  border: 1px solid var(--border-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--radiant-teal);
}

.playstyle-card.gold-style .playstyle-icon-wrap {
  background: var(--aegis-gold-dim);
  border-color: var(--border-gold);
  color: var(--aegis-gold);
}

.playstyle-rating-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--radiant-teal);
}

.playstyle-card.gold-style .playstyle-rating-badge {
  color: var(--aegis-gold);
}

.playstyle-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.playstyle-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Trait Progress Meter Bar */
.trait-meter {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.trait-meter-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--radiant-teal) 0%, #34d399 100%);
  transition: width 1s var(--ease-spring);
}

.playstyle-card.gold-style .trait-meter-fill {
  background: var(--aegis-gold-gradient);
}

/* Iconic Item Loadout Bar */
.item-loadout-panel {
  margin-top: 60px;
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  backdrop-filter: blur(16px);
}

.loadout-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.loadout-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.item-slot-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.item-slot {
  position: relative;
  width: 62px;
  height: 44px;
  border-radius: 6px;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.item-slot:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--radiant-teal);
  box-shadow: 0 8px 20px -4px rgba(16, 231, 178, 0.4);
}

.item-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.item-slot:hover .item-tooltip {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .playstyle-grid {
    grid-template-columns: 1fr;
  }
  
  .item-loadout-panel {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  
  .item-slot-grid {
    justify-content: center;
  }
}
