/* =============================================================================
   Monster Page Styles
============================================================================= */

.monster-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* ============================================================================
   Monster Cards - Layout & Appearance
============================================================================ */

.monster-card {
  background: #23272e;
  border: 2px solid #3a3f4b;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  transition: transform 0.12s, box-shadow 0.12s;
}

.monster-card:hover {
  border-color: #6e2e2e;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px) scale(1.02);
}

/* ============================================================================
   Monster Header Section
============================================================================ */

.monster-header {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.monster-image img {
  background: #181a1f;
  border: 2px solid #444;
  border-radius: 8px;
  flex-shrink: 0;
  height: 80px;
  object-fit: contain;
  width: 80px;
}

.monster-title {
  flex: 1;
}

.monster-name {
  color: #e74c3c;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 4px;
}

.monster-species {
  color: #b8b8b8;
  font-size: 1rem;
  margin-bottom: 2px;
}

.monster-type {
  color: #f1c40f;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================================
   Monster Stats
============================================================================ */

.monster-stats {
  background: linear-gradient(135deg, #2c313a 0%, #3a4049 100%);
  border: 1px solid #4a5568;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.monster-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.stat-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ============================================================================
   Bloodmoon Indicator
============================================================================ */

.bloodmoon-indicator {
  background: #c0392b;
  border-radius: 4px;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 8px;
  padding: 4px 8px;
  text-align: center;
}

/* ============================================================================
   Monster Sections
============================================================================ */

.monster-section {
  margin-bottom: 12px;
}

.monster-section:last-child {
  margin-bottom: 0;
}

.section-title {
  color: #b8b8b8;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ============================================================================
   Location & Job Tags
============================================================================ */

.monster-locations,
.monster-jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.monster-location-tag {
  background: #3a3f4b;
  border-radius: 6px;
  color: #f1c40f;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
}

.monster-job-tag {
  background: #2c313a;
  border-radius: 6px;
  color: #3498db;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
}

/* ============================================================================
   Monster Location Color Classes
============================================================================ */

.monster-location-tag.location-eldin {
  background-color: #d9534f !important;
  color: #ffffff !important;
}
.monster-location-tag.location-eldin:hover {
  background-color: #f76d6a !important;
}

.monster-location-tag.location-faron {
  background-color: #5cb85c !important;
  color: #ffffff !important;
}
.monster-location-tag.location-faron:hover {
  background-color: #76d276 !important;
}

.monster-location-tag.location-gerudo {
  background-color: #f0ad4e !important;
  color: #ffffff !important;
}
.monster-location-tag.location-gerudo:hover {
  background-color: #ffc766 !important;
}

.monster-location-tag.location-hebra {
  background-color: #b39ddb !important;
  color: #ffffff !important;
}
.monster-location-tag.location-hebra:hover {
  background-color: #c9b4ef !important;
}

.monster-location-tag.location-lanayru {
  background-color: #337ab7 !important;
  color: #ffffff !important;
}
.monster-location-tag.location-lanayru:hover {
  background-color: #4f94d4 !important;
}

.monster-location-tag.location-leafdew {
  background-color: #20cfcf !important;
  color: #ffffff !important;
}
.monster-location-tag.location-leafdew:hover {
  background-color: #45e5e5 !important;
}

.monster-location-tag.location-scarletleaves {
  background-color: #a259e6 !important;
  color: #ffffff !important;
}
.monster-location-tag.location-scarletleaves:hover {
  background-color: #be78ff !important;
}

.monster-location-tag.location-central-hyrule {
  background-color: #17a2b8 !important;
  color: #ffffff !important;
}
.monster-location-tag.location-central-hyrule:hover {
  background-color: #38bcd2 !important;
}

.monster-location-tag.location-inariko {
  background-color: #d9534f !important;
  color: #ffffff !important;
}
.monster-location-tag.location-inariko:hover {
  background-color: #f76d6a !important;
}

.monster-location-tag.location-rudania {
  background-color: #5cb85c !important;
  color: #ffffff !important;
}
.monster-location-tag.location-rudania:hover {
  background-color: #76d276 !important;
}

.monster-location-tag.location-vhintl {
  background-color: #f0ad4e !important;
  color: #ffffff !important;
}
.monster-location-tag.location-vhintl:hover {
  background-color: #ffc766 !important;
}

/* =============================================================================
   Monster Cards - Flip Functionality
============================================================================= */

.model-details-item.monster-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.model-details-item.monster-card.flipped {
  transform: rotateY(180deg);
}

/* Prevent visual glitches during flip */
.model-details-item.monster-card > * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  scrollbar-color: var(--botw-blue) rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}

/* Card Front */
.monster-card-front {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Back */
.monster-card-back {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  overflow-y: auto;
  padding: 1.5rem;
  position: absolute;
  right: 0;
  top: 0;
  transform: rotateY(180deg);
}

/* Monster Header */
.monster-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.monster-image {
  border-radius: 8px;
  flex-shrink: 0;
  height: 60px;
  overflow: hidden;
  width: 60px;
}

.monster-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.monster-title {
  flex: 1;
}

.monster-name {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.monster-species {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.monster-type {
  color: var(--totk-light-green);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================================================
   Monster Stats Section on Flip Card
============================================================================ */

.monster-stats {
  margin-bottom: 1rem;
}

.stat-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}


.stat-value.tier-1 { color: #4CAF50; }
.stat-value.tier-2 { color: #2196F3; }
.stat-value.tier-3 { color: #FF9800; }
.stat-value.tier-4 { color: #F44336; }
.stat-value.tier-5 { color: #9C27B0; }

/* ============================================================================
   Bloodmoon Tag (Flip Card)
============================================================================ */

.bloodmoon-indicator {
  background: rgba(244, 67, 54, 0.1);
  border-radius: 4px;
  color: #F44336;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  text-align: center;
}

/* ============================================================================
   Section Title and Tags (Flip Card)
============================================================================ */

.monster-section {
  margin-bottom: 1rem;
}

.section-title {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.monster-locations,
.monster-jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.monster-location-tag,
.monster-job-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

.monster-location-tag:hover,
.monster-job-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--totk-light-green);
}

/* ============================================================================
   WebKit Scrollbars for Monster Card Back
============================================================================ */

.monster-card-back::-webkit-scrollbar {
  width: 8px;
}

.monster-card-back::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.monster-card-back::-webkit-scrollbar-thumb {
  background: var(--botw-blue);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.monster-card-back::-webkit-scrollbar-thumb:hover {
  background: var(--botw-dark-blue);
}


/* ============================================================================
   Loot Item Image
============================================================================ */

.loot-item-image {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.loot-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Emoji Badge (Image-based) */
.loot-item-emoji-img {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  padding: 1px;
}

/* Emoji Badge (Text-based) */
.loot-item-emoji {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================================
   Monster Loot Section Wrappers
============================================================================ */

.monster-loot-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.monster-loot-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-divider);
  padding-bottom: 0.5rem;
}

.monster-loot-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 1rem;
}

.monster-loot-empty i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--totk-light-green);
}

.monster-loot-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================================================
   Loot Item Cards and Info
============================================================================ */

.loot-item-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.loot-item-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--totk-light-green);
  transform: translateY(-1px);
}

.loot-item-info {
  flex: 1;
  min-width: 0;
}

.loot-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loot-item-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: capitalize;
}

.loot-item-prices {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
}

.loot-item-buy {
  color: #4CAF50;
  font-weight: 500;
}

.loot-item-sell {
  color: #FF9800;
  font-weight: 500;
}

/* ============================================================================
   Monster Loot List Container
============================================================================ */

.monster-loot-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: fit-content;
  overflow-y: auto;
}

/* Scrollbar Styles for WebKit Browsers */
.monster-loot-list::-webkit-scrollbar {
  width: 6px;
}

.monster-loot-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.monster-loot-list::-webkit-scrollbar-thumb {
  background: var(--botw-blue);
  border-radius: 3px;
}

.monster-loot-list::-webkit-scrollbar-thumb:hover {
  background: var(--botw-dark-blue);
}



/* ============================================================================
   Loot Count Badge
============================================================================ */

.loot-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.loot-count i {
  color: var(--totk-light-green);
}

.loot-count strong {
  color: var(--text-primary);
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
  .monster-details-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .monster-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .model-details-item.monster-card {
    padding: 1.25rem;
  }
  
  .monster-image {
    width: 80px;
    height: 80px;
  }
  
  .monster-image img {
    width: 85%;
    height: 85%;
  }
  
  .monster-name {
    font-size: 1.3rem;
  }
  
  .monster-species {
    font-size: 0.9rem;
  }
  
  .monster-type {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }
  
  .monster-stats {
    gap: 0.75rem;
  }
  
  .stat-row {
    height: 20px;
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .stat-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  /* Monster Grid Mobile */
  .monster-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Monster Card Mobile */
  .monster-card {
    padding: 1rem;
    gap: 1rem;
  }
  
  .model-details-item.monster-card {
    padding: 1rem;
  }
  
  /* Monster Header Mobile */
  .monster-header {
    gap: 0.75rem;
  }
  
  /* Monster Image Mobile */
  .monster-image {
    width: 70px;
    height: 70px;
  }
  
  .monster-image img {
    width: 80%;
    height: 80%;
  }
  
  /* Monster Title Mobile */
  .monster-title {
    gap: 0.5rem;
  }
  
  .monster-name {
    font-size: 1.1rem;
  }
  
  .monster-species {
    font-size: 0.8rem;
  }
  
  .monster-type {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
  }
  
  /* Monster Stats Mobile */
  .monster-stats {
    gap: 0.6rem;
  }
  
  .stat-row {
    height: 18px;
    margin-bottom: 0.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
  
  .stat-value {
    font-size: 0.8rem;
  }
  
  /* Blood Moon Indicator Mobile */
  .bloodmoon-indicator {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
  
  /* Monster Section Mobile */
  .monster-section {
    margin: 0.75rem 0 0.5rem;
  }
  
  .section-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.15rem;
  }
  
  /* Monster Locations Mobile */
  .monster-locations,
  .monster-jobs {
    gap: 0.4rem;
  }
  
  .monster-location-tag,
  .monster-job-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
  }
  
  /* Monster Card Back Mobile */
  .monster-card-back {
    padding: 1rem;
  }
  
  .monster-card-back::-webkit-scrollbar {
    width: 4px;
  }
  
  .monster-card-back::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .monster-card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }
  
  .monster-card-back::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Loot Item Image Mobile */
  .loot-item-image {
    width: 40px;
    height: 40px;
  }
  
  .loot-item-image img {
    width: 85%;
    height: 85%;
  }
  
  .loot-item-emoji-img {
    width: 85%;
    height: 85%;
  }
  
  .loot-item-emoji {
    font-size: 1.2rem;
  }
  
  /* Monster Loot Section Mobile */
  .monster-loot-section {
    margin-bottom: 0.75rem;
  }
  
  .monster-loot-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .monster-loot-empty {
    padding: 0.75rem;
  }
  
  .monster-loot-empty i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .monster-loot-empty p {
    font-size: 0.85rem;
  }
  
  /* Loot Item Card Mobile */
  .loot-item-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .loot-item-info {
    gap: 0.4rem;
  }
  
  .loot-item-name {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }
  
  .loot-item-category {
    font-size: 0.7rem;
  }
  
  .loot-item-prices {
    gap: 0.4rem;
  }
  
  .loot-item-buy,
  .loot-item-sell {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
  
  /* Monster Loot List Mobile */
  .monster-loot-list {
    gap: 0.5rem;
    max-height: 200px;
  }
  
  .monster-loot-list::-webkit-scrollbar {
    width: 3px;
  }
  
  .monster-loot-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .monster-loot-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5px;
  }
  
  .monster-loot-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Loot Count Mobile */
  .loot-count {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
  
  .loot-count i {
    font-size: 0.65rem;
  }
  
  .loot-count strong {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  /* Monster Grid Extra Small */
  .monster-details-grid {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  /* Monster Card Extra Small */
  .monster-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .model-details-item.monster-card {
    padding: 0.75rem;
  }
  
  /* Monster Header Extra Small */
  .monster-header {
    gap: 0.6rem;
  }
  
  /* Monster Image Extra Small */
  .monster-image {
    width: 60px;
    height: 60px;
  }
  
  .monster-image img {
    width: 75%;
    height: 75%;
  }
  
  /* Monster Title Extra Small */
  .monster-title {
    gap: 0.4rem;
  }
  
  .monster-name {
    font-size: 1rem;
  }
  
  .monster-species {
    font-size: 0.75rem;
  }
  
  .monster-type {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
  
  /* Monster Stats Extra Small */
  .monster-stats {
    gap: 0.5rem;
  }
  
  .stat-row {
    height: 16px;
    margin-bottom: 0.3rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
    margin-right: 0.4rem;
  }
  
  .stat-value {
    font-size: 0.75rem;
  }
  
  /* Blood Moon Indicator Extra Small */
  .bloodmoon-indicator {
    font-size: 0.65rem;
    padding: 0.08rem 0.25rem;
  }
  
  /* Monster Section Extra Small */
  .monster-section {
    margin: 0.6rem 0 0.4rem;
  }
  
  .section-title {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.1rem;
  }
  
  /* Monster Locations Extra Small */
  .monster-locations,
  .monster-jobs {
    gap: 0.3rem;
  }
  
  .monster-location-tag,
  .monster-job-tag {
    font-size: 0.65rem;
    padding: 0.08rem 0.3rem;
  }
  
  /* Monster Card Back Extra Small */
  .monster-card-back {
    padding: 0.75rem;
  }
  
  /* Loot Item Image Extra Small */
  .loot-item-image {
    width: 35px;
    height: 35px;
  }
  
  .loot-item-image img {
    width: 80%;
    height: 80%;
  }
  
  .loot-item-emoji-img {
    width: 80%;
    height: 80%;
  }
  
  .loot-item-emoji {
    font-size: 1rem;
  }
  
  /* Monster Loot Section Extra Small */
  .monster-loot-section {
    margin-bottom: 0.6rem;
  }
  
  .monster-loot-title {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  .monster-loot-empty {
    padding: 0.6rem;
  }
  
  .monster-loot-empty i {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .monster-loot-empty p {
    font-size: 0.8rem;
  }
  
  /* Loot Item Card Extra Small */
  .loot-item-card {
    padding: 0.6rem;
    gap: 0.6rem;
  }
  
  .loot-item-info {
    gap: 0.3rem;
  }
  
  .loot-item-name {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  
  .loot-item-category {
    font-size: 0.65rem;
  }
  
  .loot-item-prices {
    gap: 0.3rem;
  }
  
  .loot-item-buy,
  .loot-item-sell {
    font-size: 0.65rem;
    padding: 0.08rem 0.25rem;
  }
  
  /* Monster Loot List Extra Small */
  .monster-loot-list {
    gap: 0.4rem;
    max-height: 180px;
  }
  
  /* Loot Count Extra Small */
  .loot-count {
    font-size: 0.65rem;
    padding: 0.08rem 0.25rem;
  }
  
  .loot-count i {
    font-size: 0.6rem;
  }
  
  .loot-count strong {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  /* Monster Grid Small */
  .monster-details-grid {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  /* Monster Card Small */
  .monster-card {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .model-details-item.monster-card {
    padding: 0.5rem;
  }
  
  /* Monster Header Small */
  .monster-header {
    gap: 0.5rem;
  }
  
  /* Monster Image Small */
  .monster-image {
    width: 50px;
    height: 50px;
  }
  
  .monster-image img {
    width: 70%;
    height: 70%;
  }
  
  /* Monster Title Small */
  .monster-title {
    gap: 0.3rem;
  }
  
  .monster-name {
    font-size: 0.9rem;
  }
  
  .monster-species {
    font-size: 0.7rem;
  }
  
  .monster-type {
    font-size: 0.65rem;
    padding: 0.06rem 0.25rem;
  }
  
  /* Monster Stats Small */
  .monster-stats {
    gap: 0.4rem;
  }
  
  .stat-row {
    height: 14px;
    margin-bottom: 0.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
    margin-right: 0.3rem;
  }
  
  .stat-value {
    font-size: 0.7rem;
  }
  
  /* Blood Moon Indicator Small */
  .bloodmoon-indicator {
    font-size: 0.6rem;
    padding: 0.06rem 0.2rem;
  }
  
  /* Monster Section Small */
  .monster-section {
    margin: 0.5rem 0 0.3rem;
  }
  
  .section-title {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    padding-bottom: 0.08rem;
  }
  
  /* Monster Locations Small */
  .monster-locations,
  .monster-jobs {
    gap: 0.25rem;
  }
  
  .monster-location-tag,
  .monster-job-tag {
    font-size: 0.6rem;
    padding: 0.06rem 0.25rem;
  }
  
  /* Monster Card Back Small */
  .monster-card-back {
    padding: 0.5rem;
  }
  
  /* Loot Item Image Small */
  .loot-item-image {
    width: 30px;
    height: 30px;
  }
  
  .loot-item-image img {
    width: 75%;
    height: 75%;
  }
  
  .loot-item-emoji-img {
    width: 75%;
    height: 75%;
  }
  
  .loot-item-emoji {
    font-size: 0.9rem;
  }
  
  /* Monster Loot Section Small */
  .monster-loot-section {
    margin-bottom: 0.5rem;
  }
  
  .monster-loot-title {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }
  
  .monster-loot-empty {
    padding: 0.5rem;
  }
  
  .monster-loot-empty i {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  
  .monster-loot-empty p {
    font-size: 0.75rem;
  }
  
  /* Loot Item Card Small */
  .loot-item-card {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .loot-item-info {
    gap: 0.25rem;
  }
  
  .loot-item-name {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }
  
  .loot-item-category {
    font-size: 0.6rem;
  }
  
  .loot-item-prices {
    gap: 0.25rem;
  }
  
  .loot-item-buy,
  .loot-item-sell {
    font-size: 0.6rem;
    padding: 0.06rem 0.2rem;
  }
  
  /* Monster Loot List Small */
  .monster-loot-list {
    gap: 0.3rem;
    max-height: 160px;
  }
  
  /* Loot Count Small */
  .loot-count {
    font-size: 0.6rem;
    padding: 0.06rem 0.2rem;
  }
  
  .loot-count i {
    font-size: 0.55rem;
  }
  
  .loot-count strong {
    font-size: 0.6rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .monster-card {
    min-height: 60px;
  }
  
  .monster-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .monster-location-tag:active,
  .monster-job-tag:active {
    transform: scale(0.95);
  }
  
  .loot-item-card:active {
    transform: scale(0.98);
  }
  
  .loot-item-buy:active,
  .loot-item-sell:active {
    transform: scale(0.95);
  }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .monster-details-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
  }
  
  .monster-card {
    padding: 0.75rem;
  }
  
  .model-details-item.monster-card {
    padding: 0.75rem;
  }
  
  .monster-name {
    font-size: 1rem;
  }
  
  .monster-image {
    width: 60px;
    height: 60px;
  }
  
  .monster-image img {
    width: 75%;
    height: 75%;
  }
  
  .monster-type {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }
  
  .monster-stats {
    gap: 0.5rem;
  }
  
  .stat-row {
    height: 16px;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .stat-value {
    font-size: 0.75rem;
  }
}
