/* ═══════════════════════════════════════════════════════════════════════════════
   OLYMPUS RISING - GEAR COLLECTION UI STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.gear-collection-view {
  padding: 16px;
  max-width: 100%;
}

.gear-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.gear-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.gear-stats {
  display: flex;
  gap: 12px;
}

.stat-badge {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
}

.stat-badge.sets {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(41, 128, 185, 0.3));
  border: 1px solid rgba(52, 152, 219, 0.5);
}

.stat-badge.legendaries {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(243, 156, 18, 0.3));
  border: 1px solid rgba(241, 196, 15, 0.5);
}

.gear-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.gear-tab {
  padding: 10px 20px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.gear-tab:hover {
  background: rgba(255,255,255,0.2);
}

.gear-tab.active {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a2e;
}

.gear-content {
  display: flex;
  gap: 20px;
  min-height: 500px;
}

@media (max-width: 768px) {
  .gear-content {
    flex-direction: column;
  }
}

/* Sets & Legendaries Container */
.sets-container,
.legendaries-container {
  flex: 1;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.15);
}

.filter-btn.active {
  background: rgba(212, 175, 55, 0.3);
  border-color: #d4af37;
  color: #ffd700;
}

/* Sets Grid */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.set-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.set-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.set-card.selected {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}

.set-card.owned {
  border-color: #27ae60;
}

.set-card.mythic {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2));
  border-color: rgba(155, 89, 182, 0.5);
}

.set-card.legendary {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(243, 156, 18, 0.1));
}

.set-icon { font-size: 2rem; margin-bottom: 8px; }
.set-info h4 { margin: 0 0 4px; font-size: 0.95rem; }

.set-archetype {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
}

.set-archetype.tank { background: rgba(52, 152, 219, 0.3); }
.set-archetype.assassin { background: rgba(155, 89, 182, 0.3); }
.set-archetype.bruiser { background: rgba(230, 126, 34, 0.3); }
.set-archetype.mage { background: rgba(142, 68, 173, 0.3); }
.set-archetype.support { background: rgba(39, 174, 96, 0.3); }
.set-archetype.controller { background: rgba(231, 76, 60, 0.3); }
.set-archetype.hybrid { background: rgba(149, 165, 166, 0.3); }

.set-progress { margin-top: 10px; }
.set-progress .progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.set-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  transition: width 0.3s;
}
.set-progress .progress-text { font-size: 0.75rem; opacity: 0.7; }

.set-tier-badge, .item-tier-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
}

.set-tier-badge.mythic, .item-tier-badge.mythic {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
}

.set-tier-badge.legendary, .item-tier-badge.legendary {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  color: #1a1a2e;
}

/* Detail Panels */
.set-detail-panel, .legendary-detail-panel {
  width: 350px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  max-height: 600px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .set-detail-panel, .legendary-detail-panel { width: 100%; }
}

.panel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  opacity: 0.5;
  text-align: center;
}
.panel-placeholder .placeholder-icon { font-size: 4rem; margin-bottom: 16px; }

.set-detail .detail-header, .legendary-detail .detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-icon { font-size: 2.5rem; }
.detail-icon.large { font-size: 3.5rem; }
.detail-title h3 { margin: 0 0 4px; }

.detail-tier {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.detail-tier.mythic { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.detail-tier.legendary { background: linear-gradient(135deg, #f1c40f, #f39c12); color: #1a1a2e; }

.detail-description { margin: 0 0 16px; opacity: 0.9; line-height: 1.5; }
.detail-archetype { margin-bottom: 16px; }

.archetype-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.set-bonuses h4, .set-pieces h4, .drop-locations h4,
.item-stats h4, .unique-effect h4, .drop-source h4 {
  margin: 0 0 12px;
  color: #d4af37;
  font-size: 0.95rem;
}

.bonus-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.bonus-row.active { border-color: #27ae60; background: rgba(39, 174, 96, 0.1); }
.bonus-count { font-size: 1.2rem; font-weight: 700; color: #d4af37; min-width: 40px; }
.bonus-info strong { display: block; margin-bottom: 4px; }
.bonus-info p { margin: 0; font-size: 0.85rem; opacity: 0.9; }

.bonus-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bonus-stat {
  padding: 2px 8px;
  background: rgba(39, 174, 96, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #2ecc71;
}

.active-badge {
  margin-left: auto;
  padding: 4px 8px;
  background: #27ae60;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pieces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.piece-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
.piece-slot.owned { border-color: #27ae60; background: rgba(39, 174, 96, 0.1); }
.piece-slot .slot-icon { font-size: 1.5rem; margin-bottom: 4px; }

.drop-locations ul { margin: 0; padding-left: 20px; }
.drop-locations li { margin-bottom: 4px; font-size: 0.9rem; }

/* Legendaries Grid */
.legendaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.legendary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}
.legendary-card:hover { border-color: rgba(241, 196, 15, 0.5); transform: translateY(-2px); }
.legendary-card.selected { border-color: #f1c40f; background: rgba(241, 196, 15, 0.1); }
.legendary-card.owned { border-color: #27ae60; }
.legendary-card.mythic { background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2)); }
.legendary-card .item-icon { font-size: 2.5rem; margin-bottom: 10px; }
.legendary-card .item-info h4 { margin: 0 0 4px; font-size: 0.9rem; }
.legendary-card .item-slot { font-size: 0.8rem; opacity: 0.7; }
.legendary-card .owned-badge { position: absolute; top: 8px; left: 8px; color: #27ae60; font-weight: 600; }

.legendary-detail .owned-indicator { margin-left: auto; padding: 4px 12px; background: #27ae60; border-radius: 4px; font-weight: 600; }
.legendary-detail .detail-meta { display: flex; gap: 8px; margin-top: 4px; }
.legendary-detail .detail-slot { opacity: 0.8; font-size: 0.9rem; }

.stats-grid { display: flex; flex-direction: column; gap: 6px; }
.stat-row { display: flex; justify-content: space-between; padding: 6px 10px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.stat-row .stat-value { font-weight: 600; }
.stat-row .stat-value.positive { color: #2ecc71; }

.effect-box {
  padding: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 134, 11, 0.15));
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.effect-box strong { display: block; color: #ffd700; margin-bottom: 6px; }
.effect-box p { margin: 0; line-height: 1.5; }

.item-lore {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 3px solid rgba(212, 175, 55, 0.5);
  font-style: italic;
  opacity: 0.8;
}
.drop-source { margin-top: 16px; }

/* Mythics Tab */
.mythics-container { padding: 20px; }
.mythics-header { text-align: center; margin-bottom: 30px; }
.mythics-header h3 { margin: 0 0 8px; color: #9b59b6; font-size: 1.5rem; }
.mythics-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.mythic-card {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.3));
  border-radius: 16px;
  border: 2px solid rgba(155, 89, 182, 0.5);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
}
.mythic-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(155, 89, 182, 0.3); }

.mythic-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
  animation: mythicGlow 3s ease-in-out infinite;
}
@keyframes mythicGlow {
  0%, 100% { opacity: 0.5; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(180deg); }
}

.mythic-card .mythic-icon { font-size: 4rem; position: relative; z-index: 1; }
.mythic-card h4 { margin: 12px 0 8px; color: #d4af37; position: relative; z-index: 1; }
.mythic-card .mythic-effect { margin: 0 0 8px; font-size: 0.9rem; opacity: 0.9; position: relative; z-index: 1; }
.mythic-card .mythic-source { font-size: 0.8rem; opacity: 0.7; position: relative; z-index: 1; }

/* Mythic Modal */
.mythic-modal { max-width: 500px; }
.mythic-modal .mythic-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.mythic-modal .mythic-icon-large { font-size: 5rem; }
.mythic-modal .mythic-title h2 { margin: 0 0 8px; color: #d4af37; }
.mythic-modal .mythic-badge { display: inline-block; padding: 4px 12px; background: linear-gradient(135deg, #9b59b6, #8e44ad); border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.mythic-modal .mythic-description { margin-bottom: 20px; line-height: 1.6; }
.mythic-modal .mythic-stats { margin-bottom: 20px; }
.mythic-modal .mythic-stats h4 { color: #d4af37; margin-bottom: 10px; }
.mythic-modal .stat-line { display: flex; justify-content: space-between; padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: 4px; margin-bottom: 4px; }
.mythic-modal .stat-line .value { color: #2ecc71; font-weight: 600; }
.mythic-modal .mythic-effect-box { padding: 16px; background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2)); border-radius: 10px; border: 1px solid rgba(155, 89, 182, 0.3); margin-bottom: 20px; }
.mythic-modal .mythic-effect-box h4 { margin: 0 0 10px; color: #9b59b6; }
.mythic-modal .mythic-lore { padding: 12px; background: rgba(255,255,255,0.03); border-radius: 6px; border-left: 3px solid #9b59b6; margin-bottom: 20px; }
.mythic-modal .mythic-source { text-align: center; padding: 12px; background: rgba(0,0,0,0.2); border-radius: 6px; }

.empty-state { text-align: center; padding: 40px; opacity: 0.6; }
