/* Catalog Styles */
:root {
  --color-comum: #94a3b8;
  --color-raro: #3b82f6;
  --color-epico: #a855f7;
  --color-super-epico: #f59e0b;
}

.catalog-main {
  padding: 100px 5% 50px 5%;
  min-height: 100vh;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.catalog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.catalog-title {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.catalog-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
}

/* Layout */
.catalog-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.catalog-filters {
  flex: 0 0 250px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.catalog-filters h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

#filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.catalog-content {
  flex: 1;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards */
.item-card {
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.item-card:hover {
  transform: translateY(-5px);
}

/* Rarity classes for cards */
.rarity-comum { --card-glow: var(--color-comum); }
.rarity-raro { --card-glow: var(--color-raro); }
.rarity-epico { --card-glow: var(--color-epico); }
.rarity-super-epico { --card-glow: var(--color-super-epico); }

.item-card:hover {
  box-shadow: 0 10px 30px -10px var(--card-glow);
  border-color: var(--card-glow);
}

.card-image-wrapper {
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Skeleton Loading Effect */
.skeleton {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-category {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.badge-rarity {
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.rarity-comum .badge-rarity { background: rgba(148, 163, 184, 0.2); color: var(--color-comum); border: 1px solid var(--color-comum); }
.rarity-raro .badge-rarity { background: rgba(59, 130, 246, 0.2); color: var(--color-raro); border: 1px solid var(--color-raro); box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.rarity-epico .badge-rarity { background: rgba(168, 85, 247, 0.2); color: var(--color-epico); border: 1px solid var(--color-epico); box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.rarity-super-epico .badge-rarity { background: rgba(245, 158, 11, 0.2); color: var(--color-super-epico); border: 1px solid var(--color-super-epico); box-shadow: 0 0 15px rgba(245, 158, 11, 0.6); }

.item-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
}

.btn-details {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.item-card:hover .btn-details {
  background: #fff;
  color: #000;
}

/* View Toggle */
.active-view {
  display: block !important;
}

.catalog-view {
  display: none;
}

.detail-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

/* Detail View Styles */
.detail-container {
  max-width: 1000px;
  margin: 0 auto;
}

.btn-back {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #fff;
}

.detail-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.detail-image-box {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
}

.detail-image-box.rarity-comum { border-color: var(--color-comum); }
.detail-image-box.rarity-raro { border-color: var(--color-raro); box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.detail-image-box.rarity-epico { border-color: var(--color-epico); box-shadow: 0 0 40px rgba(168, 85, 247, 0.3); }
.detail-image-box.rarity-super-epico { border-color: var(--color-super-epico); box-shadow: 0 0 50px rgba(245, 158, 11, 0.4); }

.placeholder-large {
  font-size: 5rem;
}

.detail-info-box {
  display: flex;
  flex-direction: column;
}

.detail-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.detail-description {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.detail-requirements {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.req-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.req-box i {
  font-size: 1.5rem;
  color: #eab308;
}

.req-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 0.25rem 0;
}

.req-value {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
}

.detail-pricing {
  margin-bottom: 2.5rem;
}

.price-coin {
  font-size: 1.5rem;
  font-weight: 700;
  color: #eab308;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-or {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.5rem 0;
}

.price-brl {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.detail-actions button {
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  transition: all 0.2s;
}

.btn-acquire-coins {
  background: #eab308;
  color: #000;
}

.btn-acquire-coins:hover {
  background: #facc15;
  transform: translateY(-2px);
}

.btn-acquire-brl {
  background: #10b981;
  color: #fff;
}

.btn-acquire-brl:hover {
  background: #34d399;
  transform: translateY(-2px);
}

/* Ways to acquire section in details view */
.ways-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem 0;
  color: #fff;
}

.detail-acquisition-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.acquisition-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.acquisition-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.acquisition-card .method-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coins-method .method-icon {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.cash-method .method-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.rank-method .method-icon {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.acquisition-card .method-details {
  display: flex;
  flex-direction: column;
}

.acquisition-card .method-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0 0 0.15rem 0;
}

.acquisition-card .method-value {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
}

.plus-or-above {
  font-size: 0.85rem;
  color: #a855f7;
  margin-left: 0.2rem;
  font-weight: 700;
}

/* Explanation block at the bottom */
.catalog-info-section {
  margin-top: 6rem;
  padding: 3rem 2.5rem;
  background: rgba(20, 20, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.catalog-info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.info-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(5px);
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-vip .info-card-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.15); }
.card-coins .info-card-icon { background: rgba(234, 179, 8, 0.1); color: #eab308; box-shadow: 0 0 15px rgba(234, 179, 8, 0.15); }
.card-real .info-card-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }
.card-nosub .info-card-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.15); }

.info-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.75rem 0;
  color: #fff;
}

.info-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Light Theme overrides for all catalog elements */
.light-theme .catalog-title {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #1a1a1a !important;
}

.light-theme .catalog-subtitle {
  color: #4b5563 !important;
}

.light-theme .catalog-filters {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .catalog-filters h3 {
  color: #1a1a1a !important;
}

.light-theme .filter-btn {
  color: #4b5563 !important;
}

.light-theme .filter-btn:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #1a1a1a !important;
}

.light-theme .filter-btn.active {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1a1a1a !important;
}

.light-theme .item-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .item-card:hover {
  border-color: var(--card-glow) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.light-theme .badge-category {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #4b5563 !important;
}

.light-theme .item-name {
  color: #1a1a1a !important;
}

.light-theme .btn-details {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  color: #4b5563 !important;
}

.light-theme .item-card:hover .btn-details {
  background: #1a1a1a !important;
  color: #fff !important;
}

.light-theme .btn-back {
  color: #4b5563 !important;
}

.light-theme .btn-back:hover {
  color: #1a1a1a !important;
}

.light-theme .detail-content-wrapper {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .detail-image-box {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.light-theme .detail-title {
  color: #1a1a1a !important;
}

.light-theme .detail-description {
  color: #4b5563 !important;
}

.light-theme .info-section-title {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #1a1a1a !important;
}

.light-theme .ways-title,
.light-theme .info-card-title,
.light-theme .acquisition-card .method-value {
  color: #1a1a1a !important;
}

.light-theme .acquisition-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.light-theme .acquisition-card:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.light-theme .catalog-info-section {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .info-card {
  background: rgba(0, 0, 0, 0.01) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

.light-theme .info-card:hover {
  background: rgba(0, 0, 0, 0.025) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .info-card-desc,
.light-theme .acquisition-card .method-label {
  color: #666666 !important;
}

.light-theme .plus-or-above {
  color: #8b5cf6 !important;
}

/* Responsive */
@media (max-width: 992px) {
  .catalog-container {
    flex-direction: column;
  }
  
  .catalog-filters {
    width: 100%;
    flex: none;
    position: relative;
    top: 0;
  }
  
  #filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    width: auto;
  }
  
  .detail-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .detail-acquisition-methods {
    grid-template-columns: 1fr;
  }
}
