/* Panoplie Manager - Styles */

/* ============================================
   TABS BAR
   ============================================ */
.pano-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  padding: 0 16px;
  background: rgba(20, 12, 7, 0.5);
}

.pano-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pano-tab:hover {
  color: var(--text-main);
}

.pano-tab.active {
  color: var(--primary);
}

.pano-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* ============================================
   TAB PANES
   ============================================ */
.pano-tab-pane {
  min-height: 200px;
}

/* ============================================
   ITEM CHIPS
   ============================================ */
.pano-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(224, 151, 95, 0.12);
  border: 1px solid rgba(224, 151, 95, 0.3);
  border-radius: 20px;
  font-size: 0.82rem;
  color: #e9ecef;
  cursor: default;
  transition: background 0.15s;
}

.pano-item-chip:hover {
  background: rgba(224, 151, 95, 0.2);
}

.pano-item-id {
  color: #d98b53;
  font-weight: 600;
  font-size: 0.78rem;
}

.pano-item-remove {
  background: none;
  border: none;
  color: #d4707f;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.pano-item-remove:hover {
  opacity: 1;
}

/* ============================================
   BONUS TIER CARDS
   ============================================ */
.pano-tier-card {
  border: 1px solid rgba(224, 151, 95, 0.25);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card, #241710);
}

.pano-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(224, 151, 95, 0.08);
  font-weight: 600;
  font-size: 0.88rem;
  color: #d98b53;
}

.pano-tier-body {
  padding: 10px 14px;
}

.pano-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pano-stat-row select {
  flex: 1;
  min-width: 0;
}

.pano-stat-row input[type="number"] {
  width: 90px;
  flex-shrink: 0;
}

.pano-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 120px;
  white-space: nowrap;
}

.pano-stat-remove {
  background: none;
  border: none;
  color: #d4707f;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.pano-stat-remove:hover {
  opacity: 1;
}

.pano-add-stat {
  background: none;
  border: 1px dashed rgba(224, 151, 95, 0.3);
  color: #d98b53;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}

.pano-add-stat:hover {
  background: rgba(224, 151, 95, 0.1);
}

.pano-tier-remove {
  background: none;
  border: none;
  color: #d4707f;
  cursor: pointer;
  font-size: 0.78rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.pano-tier-remove:hover {
  opacity: 1;
}

/* ============================================
   STATS REFERENCE TABLE
   ============================================ */
#panoStatsRef tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}

#panoStatsRef tbody tr:hover {
  background: rgba(224, 151, 95, 0.1) !important;
}

#panoStatsRef td, #panoStatsRef th {
  padding: 4px 8px;
  font-size: 0.8rem;
  vertical-align: middle;
}

/* ============================================
   GAME PREVIEW
   ============================================ */
.pano-game-preview {
  background: #1a1a2e;
  border: 2px solid #c4a032;
  border-radius: 6px;
  padding: 12px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.85rem;
  min-height: 150px;
}

.pano-gp-title {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffd700;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(196, 160, 50, 0.4);
  padding-bottom: 6px;
}

.pano-gp-items {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(196, 160, 50, 0.2);
}

.pano-gp-item-line {
  color: #b49a82;
  font-size: 0.8rem;
  padding: 1px 0;
}

.pano-gp-item-line.equipped {
  color: #e9ecef;
}

.pano-gp-tier-title {
  color: #d98b53;
  font-weight: 600;
  font-size: 0.82rem;
  margin-top: 6px;
  margin-bottom: 2px;
}

.pano-gp-stat-line {
  padding: 1px 0;
  font-size: 0.8rem;
}

/* ============================================
   SEARCH RESULTS DROPDOWN
   ============================================ */
#panoSearchResults .list-group-item,
#panoItemSearchResults .list-group-item {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-color: var(--border-color);
}
