/**
 * File: C:\xampp\htdocs\charapp\assets\css\character-overview.css
 * 
 * Purpose:
 * - Character Overview Styles (RPG-optimized)
 * - Enhanced HP/MP resource bars with context-aware states
 * - Performance-optimized animations
 * - NO PATTERNS/STRIPES - clean gradients only
 * 
 * Dependencies:
 * - app.css (CSS variables)
 * 
 * Load Order: 5
 */

/* =========================
   HP/MP Resource Bars - CLEAN
   ========================= */

.resource-bar-wrapper {
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 70%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 12px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.05);
}

.resource-bar-wrapper:hover {
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 70%);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.08);
}

/* HP-Specific */
.hp-bar-wrapper {
  background: 
    linear-gradient(135deg, rgba(255,107,107,0.05), rgba(255,107,107,0.01)),
    radial-gradient(circle at center, rgba(255,107,107,0.08), transparent 70%);
  border-left: 3px solid rgba(255,107,107,0.4);
}

.hp-bar-wrapper:hover {
  background: 
    linear-gradient(135deg, rgba(255,107,107,0.08), rgba(255,107,107,0.02)),
    radial-gradient(circle at center, rgba(255,107,107,0.12), transparent 70%);
  border-left-color: rgba(255,107,107,0.6);
}

.hp-label {
  color: #ff6b6b;
  text-shadow: 
    0 0 12px rgba(255,107,107,0.5),
    0 2px 4px rgba(0,0,0,0.3);
  font-weight: 900;
}

.hp-text {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff3b3b 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(255,107,107,0.3));
  background-size: 200% auto;
  animation: hpTextShimmer 3s ease-in-out infinite;
}

@keyframes hpTextShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* MP-Specific */
.mana-bar-wrapper {
  background: 
    linear-gradient(135deg, rgba(77,163,255,0.05), rgba(77,163,255,0.01)),
    radial-gradient(circle at center, rgba(77,163,255,0.08), transparent 70%);
  border-left: 3px solid rgba(77,163,255,0.4);
}

.mana-bar-wrapper:hover {
  background: 
    linear-gradient(135deg, rgba(77,163,255,0.08), rgba(77,163,255,0.02)),
    radial-gradient(circle at center, rgba(77,163,255,0.12), transparent 70%);
  border-left-color: rgba(77,163,255,0.6);
}

.mana-label {
  color: #4da3ff;
  text-shadow: 
    0 0 12px rgba(77,163,255,0.5),
    0 2px 4px rgba(0,0,0,0.3);
  font-weight: 900;
}

.mana-text {
  background: linear-gradient(135deg, #4da3ff 0%, #5dd6c9 50%, #4da3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(77,163,255,0.3));
  background-size: 200% auto;
  animation: manaTextShimmer 3s ease-in-out infinite;
}

@keyframes manaTextShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Label Row */
.resource-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 2;
}

.resource-label {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-label i {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.resource-text {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.3px;
}

/* Progress Bar Background - CLEAN */
.resource-bar-bg {
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.4) 100%);
  border-radius: 999px;
  height: 2.25rem;
  overflow: hidden;
  position: relative;
  box-shadow: 
    inset 0 4px 12px rgba(0,0,0,0.6),
    inset 0 -2px 6px rgba(255,255,255,0.05),
    0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.5);
}

.resource-bar-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

/* Progress Bar Fill - CLEAN */
.resource-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HP Bar Fill - Clean Gradient */
.hp-bar-fill {
  background: linear-gradient(90deg, 
    #dc2626 0%, 
    #ef4444 25%, 
    #f87171 50%, 
    #fca5a5 75%, 
    #fecaca 100%
  );
  background-size: 200% 100%;
  animation: hpGradientShift 4s ease-in-out infinite;
  box-shadow: 
    0 0 30px rgba(239,68,68,0.8),
    0 0 60px rgba(239,68,68,0.4),
    inset 0 4px 8px rgba(255,255,255,0.5),
    inset 0 -4px 8px rgba(0,0,0,0.4);
}

@keyframes hpGradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Shimmer effect */
.hp-bar-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(255,255,255,0.6) 50%,
    transparent 70%,
    transparent 100%
  );
  animation: hpShimmer 3s ease-in-out infinite;
}

@keyframes hpShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* MP Bar Fill - Clean Gradient */
.mana-bar-fill {
  background: linear-gradient(90deg, 
    #1e3a8a 0%, 
    #2563eb 25%, 
    #3b82f6 50%, 
    #60a5fa 75%, 
    #93c5fd 100%
  );
  background-size: 200% 100%;
  animation: manaGradientShift 5s ease-in-out infinite;
  box-shadow: 
    0 0 30px rgba(37,99,235,0.8),
    0 0 60px rgba(37,99,235,0.4),
    inset 0 4px 8px rgba(255,255,255,0.5),
    inset 0 -4px 8px rgba(0,0,0,0.4);
}

@keyframes manaGradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.mana-bar-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(255,255,255,0.6) 50%,
    transparent 70%,
    transparent 100%
  );
  animation: manaShimmer 4s ease-in-out infinite;
}

@keyframes manaShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Bar Labels */
.resource-bar-label {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 1.05rem;
  color: #000;
  text-shadow: 0 1px 3px rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
}

/* Context States */
.resource-bar-fill.healthy { opacity: 1; }
.resource-bar-fill.low { animation: lowPulse 1.5s ease-in-out infinite; }
.resource-bar-fill.critical { animation: criticalPulse 0.8s ease-in-out infinite; }
.resource-bar-fill.full { box-shadow: 0 0 40px currentColor; }

@keyframes lowPulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.1); }
}

@keyframes criticalPulse {
  0%, 100% { opacity: 1; filter: brightness(1); box-shadow: 0 0 30px currentColor; }
  50% { opacity: 0.7; filter: brightness(1.3); box-shadow: 0 0 50px currentColor; }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 576px) {
  .resource-bar-wrapper {
    padding: 1rem;
  }
  
  .resource-bar-bg {
    height: 2rem;
  }
  
  .resource-label {
    font-size: 0.9rem;
  }
  
  .resource-text {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}