/* Catalog Dialog Styles */

.catalog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.catalog-filter {
  padding: 8px 14px;
  background: #172b34;
  color: #b7cdca;
  border: 1px solid #314a54;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition: all 0.2s;
}

.catalog-filter:hover {
  background: #1e3540;
  border-color: #48606a;
}

.catalog-filter.active {
  background: #2a5a5f;
  color: #ecf9ee;
  border-color: #7fb8af;
}

#catalogCount {
  font-size: 14px;
  padding: 12px;
  background: #1c343d;
  border-radius: 5px;
  color: #9fe7d6;
  margin: 12px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 0;
  max-height: 500px;
  overflow-y: auto;
}

.catalog-card {
  position: relative;
  background: #172b34;
  border: 2px solid var(--rarity, #314a54);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--rarity);
}

.catalog-card-locked{cursor:default;background:#111f26}
.catalog-card-locked:hover{transform:none;box-shadow:none;border-color:#40515a}
.catalog-locked-placeholder{background:radial-gradient(circle at 50% 38%,#263d46,#101c22 68%)}
.catalog-question-mark{margin-bottom:58px;color:#82969d;font-size:clamp(64px,8vw,96px);font-weight:800;line-height:1;text-shadow:0 5px 0 #091319}
.catalog-card-locked .catalog-tier,.catalog-card-locked .catalog-name,.catalog-card-locked .catalog-stats{color:#82969d}

.catalog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c343d, #0f1d25);
}

.catalog-placeholder-icon {
  font-size: 48px;
  opacity: 0.5;
}

.catalog-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(7, 18, 24, 0.95), rgba(7, 18, 24, 0.85), transparent);
  color: var(--cream);
}

.catalog-tier {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.catalog-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.catalog-stats {
  font-size: 10px;
  color: #aabcc1;
  line-height: 1.4;
  margin-top: 4px;
}

.catalog-owned-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(159, 231, 214, 0.2);
  border: 1px solid #9fe7d6;
  border-radius: 4px;
  color: #9fe7d6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.catalog-owner-count {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #b7cdca;
  opacity: 0.8;
}

#catalogFeedback {
  font-size: 13px;
  color: #9ee9c7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #314b55;
}

/* Responsive adjustments */
@media (max-width: 750px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 400px;
  }
  
  .catalog-filter {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .catalog-card-info {
    padding: 8px;
  }
  
  .catalog-name {
    font-size: 13px;
  }
  
  .catalog-stats {
    font-size: 9px;
  }
}

/* Adjust user-info buttons for catalog */
.user-info {
  flex-wrap: wrap;
}

#viewCatalog {
  font-size: 13px;
  padding: 8px 14px;
}
.catalog-card-placeholder .weapon-art{height:130px;margin:0 16px 55px;width:calc(100% - 32px)}
.catalog-card:focus-visible{outline:3px solid #fff1ba;outline-offset:3px}
#weaponDetails{width:min(650px,92vw);color:#e9f2e5;background:#10252e;border:1px solid #547880;border-radius:12px;padding:24px}
#weaponDetails>.weapon-art{height:140px}.weapon-properties{display:grid;grid-template-columns:1fr 2fr;gap:12px;padding:18px;background:#17323a;border-radius:8px}.weapon-properties dt{color:#a0bdbc}.weapon-properties dd{margin:0}.weapon-ability{line-height:1.6;color:#a7f5de}#weaponDetails::backdrop{background:#031016cc}
