/* Catalog Page */
.catalog-page {
  padding: 2rem 0;
  /* background: linear-gradient(135deg, #f8f9fa, #e9ecef); */
  min-height: 100vh;
}

.catalog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.catalog-header h1 {
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.catalog-header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 2px;
}

.catalog-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.games-container {
  max-width: 1200px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.game-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Game Card Styles */
.game-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 450px;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.game-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.8),
    rgba(41, 128, 185, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: white;
  color: #3498db;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quick-view-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  color: #3498db;
}

.game-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card-header {
  margin-bottom: 1rem;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.game-platform {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.game-platform.xbox {
  background: linear-gradient(135deg, #107c10, #0f5f0f);
  color: white;
}

.game-platform.pc {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #f39c12;
  font-size: 1rem;
}

.rating-text {
  font-size: 0.9rem;
  color: #666;
}

.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.game-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.original-price {
  text-decoration: line-through;
  color: #95a5a6;
  font-size: 1rem;
  font-weight: 400;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #27ae60;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.add-to-cart-btn i {
  font-size: 1rem;
}

/* Special Card Variations */
.game-card.featured {
  border: 3px solid #f39c12;
  position: relative;
}

.game-card.featured::before {
  content: "FEATURED";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f39c12;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
}

.game-card.new {
  border: 3px solid #3498db;
  position: relative;
}

.game-card.new::before {
  content: "NEW";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #3498db;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
}

.game-card.sale {
  border: 3px solid #e74c3c;
  position: relative;
}

.game-card.sale::before {
  content: "SALE";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
}

/* Loading State */
.games-loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.games-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.games-empty h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

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

.browse-all-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.browse-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  color: white;
}

/* Responsive Design */
@media (max-width: 1280px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .catalog-page {
    padding: 1rem 0;
  }

  .catalog-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .catalog-header h1 {
    font-size: 2rem;
  }

  .catalog-header p {
    font-size: 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-card {
    height: auto;
    min-height: 400px;
  }

  .game-card-image {
    height: 200px;
  }

  .game-card-content {
    padding: 1rem;
  }

  .game-card-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .catalog-header h1 {
    font-size: 1.8rem;
  }

  .game-card {
    min-height: 350px;
  }

  .game-card-image {
    height: 180px;
  }

  .game-title {
    font-size: 1.1rem;
  }

  .game-price {
    font-size: 1.3rem;
  }
}
