/* ==========================================================================
   YATORO // DOTA 2 ESPORTS PORTFOLIO
   Hero Pool Section Stylesheet
   Premium Collectible Cards with 3D Perspective Tilt & Holographic Foil
   ========================================================================== */

.heroes-section {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #090c13 50%, var(--bg-primary) 100%);
}

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
  perspective: 1200px;
}

/* Collectible Hero Card */
.hero-card {
  position: relative;
  background: #0d1017;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.hero-card:hover {
  border-color: var(--border-teal);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.85),
              0 0 40px -10px rgba(16, 231, 178, 0.25);
}

/* Holographic / Specular Sheen Layer */
.card-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
              rgba(255, 255, 255, 0.12) 0%, 
              rgba(16, 231, 178, 0.04) 40%, 
              transparent 70%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-card:hover .card-sheen {
  opacity: 1;
}

/* Hero Portrait Frame */
.hero-card-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #07090e;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.92) contrast(1.08);
  transition: transform 0.45s var(--ease-spring);
}

.hero-card:hover .hero-card-img {
  transform: scale(1.08);
}

.hero-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
              rgba(6, 7, 9, 0.1) 0%, 
              transparent 40%, 
              #0d1017 100%);
  pointer-events: none;
}

/* Top Hero Type Tag */
.hero-card-header-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 12, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--radiant-teal);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.hero-card-header-tag.dire {
  color: var(--dire-red);
}

/* Hero Card Body */
.hero-card-body {
  padding: 20px 24px 24px;
  position: relative;
  z-index: 5;
}

.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-card-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Stats Metric Pills */
.hero-stats-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(7, 9, 13, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.hero-stat-cell {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero-stat-cell .stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.hero-stat-cell .stat-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-cell .stat-num.teal {
  color: var(--radiant-teal);
}

.hero-stat-cell .stat-num.gold {
  color: var(--aegis-gold);
}

/* Signature Match Story Snippet */
.hero-card-story {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.hero-card-story strong {
  color: #ffffff;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .heroes-grid {
    grid-template-columns: 1fr;
  }
}
