/**
 * BirdTurds Portraits CSS v43.22.37
 * Styling for hunter portraits, character cards, and profile images
 */

/* ========== HUNTER PORTRAIT CARDS ========== */
.portrait-card {
  position: relative;
  background: linear-gradient(135deg, rgba(31,41,55,0.9), rgba(17,24,39,0.95));
  border-radius: 12px;
  border: 2px solid #4b5563;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.portrait-card:hover {
  transform: scale(1.05);
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.portrait-card.selected {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(17,24,39,0.95));
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.portrait-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(70%);
}

.portrait-card.locked:hover {
  transform: none;
}

/* ========== PORTRAIT IMAGE CONTAINER ========== */
.portrait-img {
  width: 95px;
  height: 115px;
  margin: 0 auto 8px;
  border-radius: 10px;
  border: 3px solid currentColor;
  background-color: #0f172a;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 
    0 0 15px rgba(255,255,255,0.7), 
    0 0 30px rgba(255,255,255,0.3), 
    inset 0 0 15px rgba(255,255,255,0.1);
}

/* White glow effect for portraits */
.portrait-img.glow {
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff);
}

/* ========== CHARACTER-SPECIFIC BORDERS ========== */
.portrait-buck { border-color: #22c55e; }
.portrait-daisy { border-color: #f472b6; }
.portrait-clyde { border-color: #60a5fa; }
.portrait-bubba { border-color: #f59e0b; }

/* ========== BOT PORTRAIT STYLES ========== */
.portrait-bot {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(17,24,39,0.95));
}

.portrait-bot.bot1 { border-color: #ef4444; }
.portrait-bot.bot2 { border-color: #3b82f6; }
.portrait-bot.bot3 { border-color: #22c55e; }
.portrait-bot.bot4 { border-color: #a855f7; }

/* ========== PORTRAIT NAME TAG ========== */
.portrait-name {
  font-weight: bold;
  color: #fff;
  font-size: 13px;
  margin-bottom: 3px;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.portrait-subtitle {
  font-size: 10px;
  font-weight: bold;
  opacity: 0.9;
}

.portrait-desc {
  font-size: 9px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ========== SELECTION CHECKMARK ========== */
.portrait-check {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 10;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.portrait-card.selected .portrait-check {
  opacity: 1;
  transform: scale(1);
}

/* ========== LOCK OVERLAY ========== */
.portrait-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}

.portrait-card.locked .portrait-lock {
  opacity: 1;
}

/* ========== LEADERBOARD PORTRAITS ========== */
.leaderboard-portrait {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.leaderboard-portrait.rank-1 { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.leaderboard-portrait.rank-2 { border-color: #c0c0c0; box-shadow: 0 0 10px rgba(192, 192, 192, 0.5); }
.leaderboard-portrait.rank-3 { border-color: #cd7f32; box-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }

/* ========== MULTIPLAYER PLAYER PORTRAITS ========== */
.mp-player-portrait {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #3b82f6;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.mp-player-portrait.ready {
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.mp-player-portrait.host {
  border-color: #ffd700;
}

/* ========== PROFILE AVATAR ========== */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #8b5cf6;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes portraitPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,255,255,0.7); }
  50% { box-shadow: 0 0 25px rgba(255,255,255,0.9); }
}

.portrait-img.pulse {
  animation: portraitPulse 2s ease-in-out infinite;
}

@keyframes portraitUnlock {
  0% { transform: scale(1); filter: grayscale(100%); }
  50% { transform: scale(1.1); filter: grayscale(0%); }
  100% { transform: scale(1); filter: grayscale(0%); }
}

.portrait-card.unlocking {
  animation: portraitUnlock 0.5s ease-out;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 520px) {
  .portrait-img {
    width: 70px;
    height: 85px;
  }
  
  .portrait-name {
    font-size: 10px;
  }
  
  .portrait-subtitle {
    font-size: 8px;
  }
  
  .portrait-desc {
    display: none;
  }
}
