/* ==========================================================================
   YATORO // DOTA 2 ESPORTS PORTFOLIO
   Achievements Showcase Section Stylesheet
   Metallic Trophy Highlights, Filter Tabs, Fast Fluid Lift
   ========================================================================== */

.achievements-section {
  position: relative;
  padding: 140px 0;
  background-color: var(--bg-primary);
}

.section-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

/* Filter Tab Bar */
.achieve-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  background: rgba(18, 22, 31, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(25, 30, 42, 0.8);
}

.filter-btn.active {
  background: var(--radiant-teal);
  color: #050e0a;
  border-color: var(--radiant-teal);
  box-shadow: 0 0 20px var(--radiant-teal-glow);
}

.filter-btn.active.gold-filter {
  background: var(--aegis-gold-gradient);
  color: #120e03;
  border-color: var(--aegis-gold);
  box-shadow: 0 0 20px var(--aegis-gold-glow);
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 24px;
}

/* Achievement Card */
.achieve-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease, 
              background 0.25s ease;
  will-change: transform;
}

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

.achieve-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-teal);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7),
              0 0 30px -5px rgba(16, 231, 178, 0.2);
}

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

/* Aegis / TI Tier Highlights */
.achieve-card.gold-tier {
  border-color: rgba(245, 196, 81, 0.25);
  background: linear-gradient(145deg, rgba(26, 21, 12, 0.7) 0%, rgba(13, 16, 23, 0.8) 100%);
}

.achieve-card.gold-tier:hover {
  border-color: var(--aegis-gold);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8),
              0 0 35px -5px var(--aegis-gold-glow);
}

.achieve-card.gold-tier:hover::before {
  background: var(--aegis-gold-gradient);
}

/* Card Header & Badge */
.achieve-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.achieve-trophy-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}

.achieve-card:hover .achieve-trophy-icon {
  transform: scale(1.1) rotate(-3deg);
}

.achieve-card.gold-tier .achieve-trophy-icon {
  border-color: var(--border-gold);
  background: rgba(245, 196, 81, 0.1);
  color: var(--aegis-gold);
}

.achieve-year-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.achieve-card.gold-tier .achieve-year-pill {
  color: var(--aegis-gold);
}

/* Card Main Info */
.achieve-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.achieve-placement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--radiant-teal);
  margin-bottom: 14px;
}

.achieve-card.gold-tier .achieve-placement {
  color: var(--aegis-gold-light);
}

.achieve-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Card Bottom Stats / Prize Pool */
.achieve-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.achieve-prize {
  color: var(--text-muted);
}

.achieve-prize-val {
  color: var(--text-primary);
  font-weight: 700;
  margin-left: 4px;
}

.achieve-card.gold-tier .achieve-prize-val {
  color: var(--aegis-gold);
}

.achieve-team-badge {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

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