.enemy-card {
  background: #181818;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
  max-width: 500px;
  min-width: 400px;
  border: 3px solid transparent;
  overflow: hidden;
}

.enemy-card:hover {
  transform: scale(1.025);
}

.threat-minor {
  border-color: #3cb371;
  box-shadow: 0 0 8px rgba(60, 179, 113, 0.5);
}

.threat-minor h2 {
  color: #3cb371;
}

.threat-moderate {
  border-color: #4682b4;
  box-shadow: 0 0 8px rgba(70, 130, 180, 0.5);
}

.threat-moderate h2 {
  color: #4682b4;
}

.threat-severe {
  border-color: #ff8c00;
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
  animation: pulseGlow 2s infinite alternate ease-in-out;
}

.threat-severe h2 {
  color: #ff8c00;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
  }
  25% {
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.7);
  }
  75% {
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
  }
}

.threat-catastrophic {
  border-color: #b22222;
  box-shadow: 0 0 15px rgba(178, 34, 34, 0.7);
  animation: flickerGlow 1.5s infinite linear, shake 1s infinite;
}

.threat-catastrophic h2 {
  color: #b22222;
}

@keyframes flickerGlow {
  0% {
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.6);
  }
  25% {
    box-shadow: 0 0 20px rgba(178, 34, 34, 0.8);
  }
  50% {
    box-shadow: 0 0 5px rgba(178, 34, 34, 0.5);
  }
  75% {
    box-shadow: 0 0 18px rgba(255, 50, 50, 0.9);
  }
  100% {
    box-shadow: 0 0 12px rgba(178, 34, 34, 0.7);
  }
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(0.5px, 0.5px); }
    50% { transform: translate(-0.5px, -0.5px); }
    75% { transform: translate(0.5px, -0.5px); }
    100% { transform: translate(-0.5px, 0.5px); }
}

.threat-eldritch {
  border-color: #800080;
  box-shadow: 0 0 15px rgba(128, 0, 128, 0.7);
  animation: eldritchShift 1.5s infinite ease-in-out, eldritchDistort 4s infinite linear;
}

.threat-eldritch h2 {
  color: #800080;
}

@keyframes eldritchShift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  20% {
    transform: rotate(0.25deg) scale(1);
  }
  40% {
    transform: rotate(-0.25deg) scale(1);
  }
  60% {
    transform: rotate(0.75deg) scale(1);
  }
  80% {
    transform: rotate(-0.75deg) scale(1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes eldritchDistort {
  0% {
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.6);
  }
  20% {
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
  }
  40% {
    box-shadow: 0 0 10px rgba(128, 0, 128, 0.5);
  }
  60% {
    box-shadow: 0 0 30px rgba(180, 0, 255, 0.9);
  }
  80% {
    box-shadow: 0 0 12px rgba(128, 0, 128, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.6);
  }
}

/* ENEMY PAGE LAYOUT - FEXTRALIFE STYLE */
#enemy-list-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ENEMY LIST GRID */
#enemy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 2000px;
    margin: 0 auto;
}

/* ENEMY IMAGE FRAME (Like Elden Ring UI) */
.enemy-image {
    display: flex;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.enemy-image img {
    width: 100%;
    height: auto;
}

/* HEADERS */
.enemy-card h2 {
    font-size: 28px; /* Elden Ring gold */
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.enemy-card h3 {
    font-size: 24px;
    color: #cccccc;
    margin-bottom: 10px;
}

/* STAT TABLE - Styled Like Fextralife */
.enemy-stats {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 22px;
}

.enemy-stats th, .enemy-stats td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.enemy-stats th {
    text-align: left;
    font-weight: bold;
    color: #E5C100; /* Elden Ring gold */
    width: 40%;
}

.enemy-stats td {
    text-align: right;
    color: #ddd;
}

/* MOVELIST */
.enemy-moveset h3 {
    color: #E5C100;
    margin-top: 20px;
}

.enemy-moveset ul {
    list-style-type: none;
    padding: 0;
}

.enemy-moveset li {
    padding: 5px 0;
    color: #ddd;
}

.enemy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.enemy-summary {
  text-align: left;
  flex-grow: 1;
  padding-left: 10px;
}

.enemy-header h2 {
  font-size: 22px;
  color: #e5c100;
  text-transform: capitalize;
}

.enemy-header h3 {
  font-size: 16px;
  color: #aaa;
}

.expand-btn {
  background: #222;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  transition: background 0.3s ease-in-out;
}

.expand-btn:hover {
  background: #444;
}

.enemy-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 0;
  padding: 0px;
}

.enemy-details.expanded {
  max-height: 500px;
  opacity: 1;
  padding-top: 10px;
}

/* BLURRED LOCKED INFORMATION */
.blurred {
    filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    transition: filter 0.3s ease-in-out, background 0.3s ease-in-out;
}

.blurred-image {
  filter: blur(32px);
  background: rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 8px;
  transition: filter 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* UNLOCKED INFO (Removes Blur) */
.blurred.unlocked {
    filter: blur(0);
    background: none;
}

.blurred-image.unlocked {
  filter: blur(0);
  background: none;
  padding: 0px;
}

/* ========== FEXTRALIFE-STYLE DIVIDERS ========== */
.divider {
    height: 2px;
    background: rgba(255, 215, 0, 0.4);
    margin: 15px 0;
}
