
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
  overflow-x: hidden;
}

.container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

.sidebar {
  background-color: #1a1a1a;
  width: 220px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 60px;
}

.logo {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-text {
  font-weight: bold;
  color: #ffffff;
}

.menu a {
  color: #ccc;
  text-decoration: none;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: 0.3s ease;
  border-radius: 12px;
  padding: 0.5rem;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  box-shadow: 0 0 10px #ffffff20;
}

.content {
  flex-grow: 1;
  padding: 2rem;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

header p {
  font-size: 1rem;
  color: #bcbcbc;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-card {
  position: relative;
  background: #111;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
}

.item-card:hover {
  transform: translateY(-5px);
  background: #191919;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

.item-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

.item-card img:hover {
  transform: scale(1.03);
}

.item-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.item-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.item-card .price {
  font-weight: bold;
  color: #eee;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.buy-btn {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(to right, #ffffff, #cccccc);
  border: none;
  border-radius: 10px;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.buy-btn:hover {
  background: linear-gradient(to right, #dddddd, #ffffff);
}

.rarity-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 12px;
  text-transform: uppercase;
  animation: pulseTag 1.5s ease-in-out infinite;
  backdrop-filter: blur(6px);
  letter-spacing: 1px;
}

@keyframes pulseTag {
  0% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  }
}

.rarity-tag.simple {
  background: #3e943b;
  color: #fff;
  box-shadow: 0 0 8px #1cff41;
}

.rarity-tag.premium {
  background: #cce05a;
  color: #fff;
  box-shadow: 0 0 10px #fbff26;
}

.rarity-tag.exclusive {
  background: #9900ff;
  color: #fff;
  box-shadow: 0 0 12px #9900ff;
}

/* Category Filter Buttons */
.category-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.filter-btn {
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
  background: linear-gradient(to right, #fff, #ccc);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  opacity: 0.15;
}

.filter-btn.active {
  color: #fff;
  border: 1px solid #888;
  box-shadow: 0 0 10px #ffffff50;
}

