/* Inventory Page Styles */
.inventory-page {
  min-height: calc(100vh - 70px);
  background: #0a0a0a;
}

.inventory-header {
  background: #1a1a1a;
  padding: 2rem;
  border-bottom: 2px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inventory-header h1 {
  color: #FFD700;
  font-size: 2rem;
}

.inventory-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  color: #888;
  font-size: 0.9rem;
}

.inventory-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}

.inventory-sidebar {
  width: 250px;
  background: #1a1a1a;
  padding: 2rem;
  border-right: 2px solid #333;
}

.inventory-sidebar h2 {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: #2a2a2a;
  border: 2px solid #333;
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.filter-btn:hover {
  border-color: #FFD700;
}

.filter-btn.active {
  background: #FFD700;
  color: #000;
  border-color: #FFD700;
}

.inventory-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inventory-main {
  flex: 1;
  padding: 2rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.inventory-card {
  background: #1a1a1a;
  border-radius: 12px;
  border: 2px solid #333;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.inventory-card:hover {
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.2);
}

.card-rarity {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card-quantity {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #FFD700;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
}

.card-preview {
  padding: 2rem 1rem 1rem;
  background: rgba(255, 215, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon {
  font-size: 3.5rem;
}

.card-info {
  padding: 1rem;
}

.card-name {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFD700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.btn-small {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.empty-inventory {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-inventory h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-inventory p {
  margin-bottom: 2rem;
}

/* Item Details Modal */
.item-details {
  color: #fff;
}

.details-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.details-icon {
  font-size: 4rem;
}

.details-title h2 {
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.details-rarity {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.rarity-common { background: #9CA3AF; color: #000; }
.rarity-uncommon { background: #10B981; color: #000; }
.rarity-rare { background: #3B82F6; color: #FFF; }
.rarity-epic { background: #8B5CF6; color: #FFF; }
.rarity-legendary { background: #F59E0B; color: #000; }

.details-description {
  color: #aaa;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.details-stats {
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.stat-row:last-child {
  border-bottom: none;
}

.details-section {
  margin-bottom: 1.5rem;
}

.details-section h3 {
  color: #FFD700;
  margin-bottom: 0.75rem;
}

.placement-list {
  list-style: none;
  padding: 0;
}

.placement-list li {
  padding: 0.5rem;
  background: #2a2a2a;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  color: #aaa;
}

.details-actions {
  display: flex;
  gap: 0.75rem;
}

.details-actions .btn {
  flex: 1;
}
