/* Player Journey Visualization Styles */

.player-journey {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #fff;
}

/* Ensure proper background for the entire page */
body {
  background: #0a0a0f;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(253, 121, 168, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Hero Section */
.journey-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0,245,255,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 20px;
}

.player-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(0,245,255,0.5);
  position: relative;
}

.level-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: linear-gradient(45deg, #00F5FF, #8B5CF6);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,245,255,0.4);
  min-width: 30px;
  text-align: center;
}

.player-info {
  flex: 1;
}

.player-name {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  background: linear-gradient(45deg, #00F5FF, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-display {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.role-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-overview {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: #00F5FF;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Level Progress */
.level-progress-section {
  margin-bottom: 3rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h3 {
  margin: 0;
  color: #00F5FF;
}

.level-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #8B5CF6;
}

.progress-bar-container {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00F5FF, #8B5CF6);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Knowledge Mastery */
.knowledge-section {
  margin-bottom: 3rem;
}

.knowledge-section h3 {
  color: #00F5FF;
  margin-bottom: 1.5rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.knowledge-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,245,255,0.2);
}

.knowledge-card.unexplored {
  opacity: 0.5;
}

.knowledge-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.knowledge-info {
  flex: 1;
}

.knowledge-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.mastery-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.level-bars {
  display: flex;
  gap: 2px;
}

.level-bar {
  width: 8px;
  height: 12px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.level-bar.filled {
  background: #00F5FF;
}

.level-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.knowledge-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Role Progression */
.role-progression-section {
  margin-bottom: 3rem;
}

.role-progression-section h3 {
  color: #00F5FF;
  margin-bottom: 1.5rem;
}

.current-roles {
  margin-bottom: 2rem;
}

.current-roles h4 {
  color: #8B5CF6;
  margin-bottom: 1rem;
}

.role-unlocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.unlock-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 1rem;
}

.unlock-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.unlock-info h5 {
  margin: 0 0 0.25rem 0;
  color: #00F5FF;
}

.unlock-info p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.progression-paths h4 {
  color: #8B5CF6;
  margin-bottom: 1rem;
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.path-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,245,255,0.2);
}

.path-card.unlocked {
  border-color: #00F5FF;
  box-shadow: 0 0 20px rgba(0,245,255,0.3);
}

.path-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.path-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.path-info h5 {
  margin: 0 0 0.25rem 0;
  color: #00F5FF;
}

.path-info p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.path-requirements {
  margin-bottom: 1rem;
}

.path-requirements h6 {
  color: #8B5CF6;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.requirement-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.requirement-item.met {
  background: rgba(0,245,255,0.1);
}

.requirement-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.requirement-item.met .requirement-check {
  background: #00F5FF;
  color: #000;
}

.requirement-item:not(.met) .requirement-check {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}

.requirement-text {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.req-name {
  font-size: 0.9rem;
}

.req-progress {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.requirement-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.req-progress-fill {
  height: 100%;
  background: #00F5FF;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.path-rewards h6 {
  color: #8B5CF6;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.path-rewards ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.path-rewards li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.path-rewards li:before {
  content: "✓ ";
  color: #00F5FF;
  font-weight: bold;
}

/* Achievements */
.achievements-section {
  margin-bottom: 3rem;
}

.achievements-section h3 {
  color: #00F5FF;
  margin-bottom: 1.5rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.achievement-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,245,255,0.2);
}

.achievement-card.unlocked {
  border-color: #00F5FF;
  box-shadow: 0 0 20px rgba(0,245,255,0.3);
}

.achievement-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.achievement-card.unlocked .achievement-icon {
  filter: drop-shadow(0 0 10px rgba(0,245,255,0.5));
}

.achievement-info {
  flex: 1;
}

.achievement-info h5 {
  margin: 0 0 0.25rem 0;
  color: #00F5FF;
}

.achievement-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.achievement-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.achievement-progress .progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.achievement-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00F5FF, #8B5CF6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.achievement-progress .progress-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  min-width: 40px;
  text-align: right;
}

/* Activity Stats */
.activity-stats-section h3 {
  color: #00F5FF;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,245,255,0.2);
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-card .stat-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: #00F5FF;
  font-weight: bold;
}

.stat-card .stat-info p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Loading and Error States */
.loading-state, .error-state {
  text-align: center;
  padding: 3rem;
  color: rgba(255,255,255,0.8);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid #00F5FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .player-journey {
    padding: 1rem;
  }
  
  .journey-hero {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .stats-overview {
    justify-content: center;
  }
  
  .knowledge-grid,
  .achievements-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .path-cards {
    grid-template-columns: 1fr;
  }
  
  .role-unlocks {
    grid-template-columns: 1fr;
  }
}
