/* =============================================
   COMPONENTS — Buttons, Cards, Badges
   ============================================= */

/* === BUTTONS === */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--ff-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
  -webkit-user-select: none;
  user-select: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-red-vivid) 0%, var(--c-red) 50%, var(--c-red-dark) 100%);
  color: #fff;
  border: 1px solid rgba(255, 45, 70, 0.4);
  box-shadow:
    0 4px 15px rgba(229, 37, 53, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--glow-red-intense);
  background: linear-gradient(135deg, var(--c-red-hot) 0%, var(--c-red-vivid) 50%, var(--c-red) 100%);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* Ripple effect on click */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn--outline {
  background: rgba(229, 37, 53, 0.05);
  color: var(--c-red-vivid);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--outline:hover {
  border-color: var(--c-red);
  box-shadow: var(--glow-red-subtle);
  background: rgba(229, 37, 53, 0.1);
  transform: translateY(-2px);
}

.btn--large {
  padding: 20px 56px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.btn--glow {
  animation: glowPulseBtn 3s ease-in-out infinite;
}

@keyframes glowPulseBtn {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(229, 37, 53, 0.3),
      0 0 40px rgba(229, 37, 53, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(255, 45, 70, 0.5),
      0 0 60px rgba(229, 37, 53, 0.2),
      0 0 100px rgba(229, 37, 53, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

/* === CARDS === */

.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition:
    transform var(--t-medium),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.card:hover {
  border-color: var(--c-glass-border-hover);
  box-shadow: var(--glow-red-subtle), 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* === BADGE === */

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--c-red-vivid), var(--c-red-dark));
  color: #fff;
}

.badge--gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a00;
}

.badge--silver {
  background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  color: #1a1a1a;
}

.badge--bronze {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
}

/* === STAT CARD === */

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gap-xl) var(--gap-lg);
  min-height: 120px;
  border-radius: var(--radius-md);
  background: var(--c-bg-card);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.stat__number {
  display: block;
  font-family: var(--ff-mono);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--c-red-vivid);
  text-shadow: var(--glow-text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  line-height: 1.3;
}
