/* Profile Esports Theme (scoped to body.esports-theme.profile-page) */
body.esports-theme.profile-page {
  --bg-1: #050505;
  --panel: rgba(255,255,255,0.04);
  --panel-2: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: #9CA3AF;
  --primary: #39FF14;
  --accent-1: #39FF14;
  --accent-2: #00FF7F;
  --danger: #ff4757;
  --warning: #ffb020;
  --grey-green: #7FFFAF;
  background: #050505;
  color: var(--text);
}

/* Top bar */
body.esports-theme.profile-page .navbar {
  background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.8)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Panels */
.profile-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 18px;
  box-shadow: 0 0 12px rgba(57,255,20,0.2);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(57,255,20,0.4);
}

.section-title {
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
}

.badge-verified {
  background: linear-gradient(135deg, #00d48f, #39ff14);
  color: #001510;
  border: none;
}

.badge-unverified {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: #fff;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(57,255,20,0.6);
  border: 3px solid var(--accent-1);
  transition: all 0.3s ease;
  animation: breatheGlow 3s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.profile-avatar:hover {
  border-color: var(--accent-2);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(57,255,20,0.8);
}

.input-url {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}
.input-url::placeholder { color: var(--muted); }
.input-url:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 0.25rem rgba(0,229,255,.15); }

.stat-chip {
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,229,255,0.1));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stat-chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, rgba(108,92,231,0.3), rgba(0,229,255,0.2));
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-1);
  text-shadow: 0 0 8px rgba(57,255,20,0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--grey-green);
  margin-top: 5px;
}

.neon-progress {
  height: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.neon-progress > .fill {
  height: 100%;
  background: linear-gradient(90deg, #6c5ce7, #00e5ff, #39ff14);
  box-shadow: 0 0 20px rgba(0,229,255,.25);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.icon-pill:hover { filter: brightness(1.1); }

.grid-gap-16 { gap: 16px; }

/* Toggles */
.form-switch .form-check-input {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.form-switch .form-check-input:checked {
  background-color: #39FF14;
  border-color: #39FF14;
  box-shadow: 0 0 0 0.25rem rgba(57,255,20,.2);
}

/* Profile Header */
.profile-header {
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  margin: 20px;
  padding: 30px !important;
  box-shadow: 0 0 12px rgba(57,255,20,0.2);
  border: 1px solid rgba(57,255,20,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.profile-info h1 {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(57,255,20,0.5);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
}

.profile-info h1:hover {
  transform: scale(1.03);
  text-shadow: 0 0 15px rgba(57,255,20,0.8);
}

.profile-info .lead {
  color: var(--muted);
  font-weight: 500;
}

.profile-stats {
  margin-top: 20px;
  justify-content: center;
}

.stat-item {
  min-width: 100px;
  padding: 15px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(57,255,20,0.25);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.stat-item:hover {
  background: rgba(57,255,20,0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(57,255,20,0.3);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(57,255,20,0.3);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(57,255,20,0.6);
}

.btn-outline-light {
  border-color: rgba(57,255,20,0.3);
  color: var(--text);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.btn-outline-light:hover {
  background: rgba(57,255,20,0.1);
  border-color: var(--accent-1);
  box-shadow: 0 0 8px rgba(57,255,20,0.3);
}

/* Form Controls */
.form-control, .form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(57,255,20,0.2);
  color: var(--text);
  border-radius: 8px;
  transform: translateZ(0);
}

.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent-1);
  box-shadow: 0 0 0 0.25rem rgba(57,255,20,.15);
  color: var(--text);
}

.form-control:disabled, .form-control[readonly] {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

/* List Group Items */
.list-group-item {
  background: transparent;
  border-color: rgba(57,255,20,0.1);
  color: var(--text);
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.list-group-item:hover {
  background: rgba(57,255,20,0.05);
  border-color: rgba(57,255,20,0.2);
}

/* List Group */
.list-group-item {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}

/* Modal */
.modal-content {
  background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(10,10,10,0.85));
  color: var(--text);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(57,255,20,0.2);
}

.modal-header {
  border-bottom: 1px solid rgba(57,255,20,0.2);
  background: rgba(57,255,20,0.05);
}

.modal-footer {
  border-top: 1px solid rgba(57,255,20,0.2);
  background: rgba(57,255,20,0.05);
}

.modal-content .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
footer {
  background: linear-gradient(180deg, rgba(18,24,42,0.95), rgba(18,24,42,0.8)) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}

/* Active Navigation State */
.navbar-nav .nav-link.active {
  color: #39FF14 !important;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);
  box-shadow: 0 0 12px rgba(57,255,20,0.3), 0 0 24px rgba(57,255,20,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 2px;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Responsive spacing */
.profile-content { 
  padding: 20px; 
}

@media (min-width: 992px) { 
  .profile-content { 
    padding: 24px; 
    max-width: 1140px; 
    margin: 0 auto 40px; 
  } 
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .profile-header {
    margin: 10px;
    padding: 20px !important;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
  }
  
  .profile-info h1 {
    font-size: 1.8rem;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .stat-item {
    min-width: 80px;
    padding: 10px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .profile-content {
    padding: 10px;
  }
  
  .profile-card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 15px;
  }
}

/* Animation for stats */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: fadeInUp 0.5s ease forwards;
  transform: translateZ(0);
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Breathing glow animation for profile avatar */
@keyframes breatheGlow {
  0% {
    box-shadow: 0 0 10px rgba(57,255,20,0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(57,255,20,0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(57,255,20,0.4);
  }
}

/* Fade up animation for stats */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .profile-avatar {
    animation: none;
  }
  
  .stat-item {
    animation: none;
  }
}

/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .profile-avatar {
    animation: none;
  }
  
  .stat-item {
    animation: none;
  }
}

/* Notification Bell */

/* Wallet Info */
.wallet-info {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  transform: translateZ(0);
  will-change: transform;
}

.wallet-info:hover {
  background: rgba(57,255,20,0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(57,255,20,0.3);
}

.wallet-info i {
  color: var(--accent-1);
}

.wallet-info span {
  font-weight: 600;
  color: var(--accent-1);
}

/* Restricted Field Styling */
.restricted-field {
  background: rgba(255, 0, 0, 0.1) !important;
  border-color: rgba(255, 0, 0, 0.3) !important;
  color: #ff9999 !important;
}

.restricted-field:focus {
  border-color: rgba(255, 0, 0, 0.5) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.15) !important;
}

/* Restriction Message */
#restrictionMessage {
  border-left: 4px solid #ffc107;
  background: rgba(255, 193, 7, 0.1) !important;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

#restrictionMessage strong {
  color: #ffc107;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
