.item-list-container {
  display: flex;
  height: calc(100vh - 120px);
  background: rgba(10, 15, 25, 0.95);
  color: #e0e6ed;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.item-list-sidebar {
  width: 380px;
  border-right: 1px solid rgba(0, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  background: rgba(5, 10, 20, 0.5);
}

.search-box {
  padding: 20px;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 12px 15px;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 15px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.filter-btn.active {
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  border-color: #00ffff;
}

.items-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
}

.item-row {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #9d9d9d;
  cursor: pointer;
}

.item-row.selected {
  background: rgba(0, 255, 255, 0.08);
}

.item-row-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-row-icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

/* Inspector Base */
.item-inspector {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.inspector-header {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}

.header-visual {
  width: 100px;
  height: 100px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-visual img {
  width: 64px;
  height: 64px;
}

/* Mobile Modal Logic */
@media (max-width: 768px) {
  .item-list-sidebar {
    width: 100%;
    border: none;
  }

  .item-inspector.mobile-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .inspector-content {
    background: #0d121d;
    border: 1px solid #00ffff44;
    width: 100%;
    max-height: 120vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }

  .close-inspector {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 30px;
    cursor: pointer;
  }

  .item-inspector:not(.mobile-modal) {
    display: none;
  }
}

/* Rarity */
.item-row.legendary {
  border-left-color: #ff8000;
}
.item-row.epic {
  border-left-color: #a335ee;
}
.item-row.rare {
  border-left-color: #0070dd;
}

@media screen and (max-width: 600px) {
  .section-title {
    font-size: 16px;
    padding: 0;
    margin: 10px;
  }
}
