/* MC Leaderboards - Additional Animations */

/* Fresh static animations - no glow or breathing effects */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Subtle fade in with slight scale */
@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Smooth slide up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for list items */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide out animation */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Shake animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading placeholder pulse */
@keyframes skeletonPulse {
  0% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.62;
  }
}

/* Utility classes */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-shake {
  animation: shake 0.5s;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}

.slide-out {
  animation: slideOut 0.3s ease;
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hover-glow:hover {
  transform: translateY(-1px);
}

/* Loading skeleton */
.skeleton {
  background: rgba(255, 255, 255, 0.08);
  animation: skeletonPulse 1.2s ease-in-out infinite;
  border-radius: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Status indicators */
.status-online {
  position: relative;
}

.status-online::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--success-color);
  border-radius: 50%;
  border: 2px solid var(--primary-bg);
  animation: pulse 2s infinite;
}

.status-offline::before {
  background-color: var(--text-muted);
}

/* Progress bar animation */
@keyframes progress {
  from {
    width: 0%;
  }
}

.progress-bar {
  animation: progress 1s ease;
}

/* Notification badge */
.notification-badge {
  position: relative;
}

.notification-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--error-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.notification-badge[data-count="0"]::after,
.notification-badge:not([data-count])::after {
  display: none;
}

/* Badge rankup animations */
@keyframes badgeAppear {
  0% {
    opacity: 0;
    transform: scale(0.1) rotate(0deg);
  }
  25% {
    opacity: 0.7;
    transform: scale(0.5) rotate(-5deg);
  }
  50% {
    opacity: 1;
    transform: scale(0.8) rotate(5deg);
  }
  75% {
    opacity: 1;
    transform: scale(1.1) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes badgeFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes lightStream {
  0% {
    opacity: 0;
    transform: rotate(0deg) scaleY(0);
  }
  10% {
    opacity: 1;
    transform: rotate(0deg) scaleY(0.1);
  }
  50% {
    opacity: 1;
    transform: rotate(0deg) scaleY(1);
  }
  90% {
    opacity: 0.5;
    transform: rotate(0deg) scaleY(0.8);
  }
  100% {
    opacity: 0;
    transform: rotate(0deg) scaleY(0);
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== Toast Notification System ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: all;
  opacity: 0;
  transform: translateX(100%);
  transition: none;
}

.toast-visible {
  animation: slideIn 0.3s ease forwards;
}

.toast-exit {
  animation: slideOut 0.3s ease forwards;
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; }
.toast-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 0.2rem; font-size: 0.8rem; flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }

.toast-success { border-left: 3px solid #10b981; }
.toast-success .toast-icon { color: #10b981; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning { border-left: 3px solid #f59e0b; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info { border-left: 3px solid #3498db; }
.toast-info .toast-icon { color: #3498db; }

@media (max-width: 480px) {
  .toast-container {
    left: 0.5rem;
    right: 0.5rem;
    max-width: 100%;
  }
}

/* ===== Back-to-Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ===== Character Counter ===== */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.char-counter-warn { color: var(--warning-color); }
.char-counter-full { color: var(--error-color); font-weight: 600; }

/* ===== Keyboard Shortcut Keys ===== */
kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--tertiary-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* ===== Inbox Filter Tabs ===== */
.inbox-filter-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.inbox-filter-tabs::-webkit-scrollbar { display: none; }

.inbox-filter-tab {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.inbox-filter-tab:hover {
  color: var(--text-primary);
  border-color: rgba(59, 179, 137, 0.3);
}

.inbox-filter-tab.active {
  background: rgba(59, 179, 137, 0.14);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.inbox-filter-tab .filter-count {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.inbox-filter-tab.active .filter-count {
  background: rgba(59, 179, 137, 0.22);
}

/* ===== Enhanced Empty States ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.88rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ===== Report Status Badges ===== */
.report-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
}

.report-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.report-status-badge.resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.report-status-badge.dismissed {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(50px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes matchResultsConfettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg) scale(1);
    opacity: 1;
  }
  10% {
    transform: translateY(10vh) rotate(90deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

@keyframes ratingPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
