/* User Progression System Styles */

/* Level Badge Styles */
.level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  font-size: 0.8rem;
  font-weight: normal;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.level-badge i {
  margin-right: 0.35rem;
  font-size: 1rem;
}

.level-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.level-badge.novice {
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.3);
}

.level-badge.active-member {
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.3);
}

.level-badge.regular-contributor {
  color: #17a2b8;
  border-color: rgba(23, 162, 184, 0.3);
}

.level-badge.veteran {
  color: #fd7e14;
  border-color: rgba(253, 126, 20, 0.3);
}

.level-badge.expert {
  color: #6f42c1;
  border-color: rgba(111, 66, 193, 0.3);
}

.level-badge.master {
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
  text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.level-badge.grandmaster {
  color: #dc3545;
  background: linear-gradient(45deg, rgba(220, 53, 69, 0.2), rgba(255, 105, 180, 0.2), rgba(65, 105, 225, 0.2));
  border-color: rgba(220, 53, 69, 0.5);
  text-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
  animation: badge-pulse 3s infinite;
}

/* Avatar Border Styles */
.avatar-border-standard {
  border: 2px solid var(--pink-accent);
}

.avatar-border-silver {
  border: 3px solid #C0C0C0;
}

.avatar-border-gold {
  border: 3px solid #FFD700;
}

.avatar-border-platinum {
  border: 3px solid #E5E4E2;
  animation: platinum-glow 2s infinite;
}

.avatar-border-diamond {
  border: 3px solid #B9F2FF;
  animation: diamond-glow 3s infinite;
}

.avatar-border-master {
  border: 4px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.avatar-border-master::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  background: linear-gradient(45deg, #FF69B4, #FF0000, #4169E1);
  border-radius: 50%;
  z-index: -1;
  animation: border-rotate 3s linear infinite;
}

.avatar-border-grandmaster {
  border: 5px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.avatar-border-grandmaster::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  background: linear-gradient(45deg, #FF0000, #FF69B4, #4169E1, #FFD700);
  border-radius: 50%;
  z-index: -1;
  animation: border-rotate 2s linear infinite, glow-pulse 4s ease-in-out infinite;
}

/* User Name Effect Styles */
.name-effect-none {
  font-weight: normal;
}

.name-effect-bold {
  font-weight: bold;
}

.name-effect-colored {
  background: linear-gradient(45deg, #FF69B4, #4169E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.name-effect-glowing {
  color: var(--pink-accent);
  text-shadow: 0 0 5px var(--pink-glow);
}

.name-effect-rainbow {
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: hue-rotate 3s infinite linear;
}

.name-effect-neon {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--pink-accent), 0 0 30px var(--pink-accent), 0 0 40px var(--pink-accent);
  animation: pulse 2s infinite;
}

.name-effect-animated-gradient {
  background: linear-gradient(90deg, #FF0000, #FF69B4, #4169E1, #00FFFF, #4169E1, #FF69B4, #FF0000);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: gradient-animation 4s linear infinite;
}

/* Special Badge Styles */
.special-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.special-badge i {
  margin-right: 0.3rem;
}

.special-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Progress Bar Styles */
.level-progress-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 1rem 0;
  overflow: hidden;
  height: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.level-progress-bar {
  height: 100%;
  transition: width 1s ease;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--pink-accent), #4169E1);
  background-size: 200% 100%;
  animation: progress-animation 2s infinite ease-in-out;
}

/* Profile Theme Styles */
.theme-preview {
  width: 100%;
  height: 70px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.theme-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-preview.active {
  border-color: var(--pink-accent);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.theme-preview-card {
  position: absolute;
  width: 40%;
  height: 30px;
  right: 10px;
  bottom: 10px;
  border-radius: 5px;
}

/* Review Highlight Styles */
.review-highlight {
  position: relative;
  border-left: 3px solid var(--pink-accent);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.1);
}

.review-highlight-expert {
  position: relative;
  border-left: 3px solid #6f42c1;
  background: linear-gradient(90deg, rgba(111, 66, 193, 0.1), transparent);
  box-shadow: 0 0 15px rgba(111, 66, 193, 0.1);
}

.review-highlight-master {
  position: relative;
  border-left: 3px solid #ffc107;
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.1);
}

.review-highlight-grandmaster {
  position: relative;
  border-left: 3px solid transparent;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.1), transparent);
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.1);
  overflow: hidden;
}

.review-highlight-grandmaster::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #FF0000, #FF69B4, #4169E1);
  animation: border-flow 3s infinite linear;
}

/* Level-up Animation */
.level-up-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.5s ease-in, fadeOut 0.5s ease-out 4.5s forwards;
}

.level-up-content {
  text-align: center;
  animation: scaleUp 0.5s ease-out;
}

.level-up-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--pink-accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--pink-glow);
  animation: pulse 2s infinite;
}

.level-up-level {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  animation: showUp 0.5s ease-out 0.5s both;
}

.level-up-perks {
  max-width: 500px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  animation: showUp 0.5s ease-out 1s both;
}

.level-up-perks h3 {
  margin-bottom: 1rem;
  color: var(--pink-accent);
}

.level-up-perks ul {
  text-align: left;
  padding-left: 1.5rem;
}

.level-up-perks li {
  margin-bottom: 0.5rem;
}

/* Feature Badges */
.feature-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  background-color: rgba(255, 105, 180, 0.2);
  color: var(--pink-accent);
}

.feature-badge.new {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.feature-badge.coming-soon {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.feature-badge.premium {
  background-color: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

/* Custom Status Styles */
.custom-status {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Pinned Replay Badge */
.pinned-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  font-size: 1rem;
  color: #ffc107;
  animation: pin-pulse 2s infinite;
}

/* Animation Keyframes */
@keyframes border-rotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 360% 50%;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.6));
  }
}

@keyframes platinum-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(229, 228, 226, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(229, 228, 226, 0.9);
  }
}

@keyframes diamond-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(185, 242, 255, 0.5);
  }
  33% {
    box-shadow: 0 0 15px rgba(185, 242, 255, 0.9);
  }
  66% {
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.7);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes hue-rotate {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes progress-animation {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes pin-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes border-flow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 300px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes showUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
} 