:root {
  /* Colors */
  --color-bg: linear-gradient(135deg, #1f1f1f 0%, #383838 100%);
  --color-text: #fff;
  --color-subtext: #a1a1a1;

  --color-primary: #dd023c;
  --color-primary-dark: #990029;
  --color-accent: #ff335c;
  --color-highlight: #ff627a;

  /* UI Elements */
  --color-card-bg: #202020;
  --color-card-overlay: rgba(26, 26, 26, 0.98);
  --color-input-bg: rgba(75, 75, 75, 0.05);
  --color-input-border: rgba(255, 0, 0, 0.1);

  /* Transitions & Sizes */
  --transition: all 0.3s ease;
  --radius-md: 8px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

body {
  font-weight: 300;
  margin: 0;
  padding: 0;
  background-color: #0d0d0d;
  color: white;
  font-size: 1.25rem;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 200px;
  margin-bottom: 100px;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-header p {
  font-size: 1.1rem;
  color: var(--color-subtext);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-header p strong {
  color: var(--color-primary);
  font-weight: 600;
}

.services-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.services-filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.services-filter-btn {
  background: #1d1d1d;
  border: 2px solid var(--color-input-border);
  color: var(--color-subtext);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-filter-btn i {
  font-size: 0.9rem;
}

.services-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-2px);
}

.services-filter-btn.services-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.services-search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.services-search-box input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  background: #1d1d1d;
  border: 2px solid var(--color-input-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: var(--transition);
}

.services-search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(66, 66, 66, 0.08);
}

.services-search-box::before {
  content: "\f002"; /* Font Awesome search icon */
  font-family: "Font Awesome 6 Free"; /* or "Font Awesome 6 Free" depending on your version */
  font-weight: 900; /* required for solid icons */
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #888888;
}

.services-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.services-game-card {
  background: var(--color-card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 340px;
}

.services-game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(27, 27, 27, 0.4);
  text-decoration: none;
}

.services-game-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.services-game-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    var(--color-card-overlay) 0%,
    rgba(27, 27, 27, 0.85) 40%,
    transparent 100%
  );
  z-index: 2;
}

.services-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.services-game-card:hover .services-game-image img {
  transform: scale(1.05);
}

.services-game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 3;
}

.services-game-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.services-game-price {
  color: #8b92b8;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.services-game-price span {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.services-platform-icons {
  display: flex;
  gap: 8px;
}

.services-platform-icon {
  width: 28px;
  height: 28px;
  background: rgb(36, 35, 35);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #8b92b8;
  transition: var(--transition);
}

.services-platform-icon:hover {
  background: var(--color-accent);
  color: var(--color-text);
}

/* Responsive */
@media (max-width: 1400px) {
  .services-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1100px) {
  .services-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .services-container {
    padding: 0 15px;
  }

  .services-header h1 {
    font-size: 2.5rem;
  }

  .services-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .services-search-box {
    max-width: 100%;
  }

  .services-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .services-game-card {
    height: 220px;
  }

  .services-game-info {
    padding: 12px;
  }

  .services-game-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .services-game-price {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .services-game-price span {
    font-size: 0.85rem;
  }

  .services-platform-icons {
    gap: 6px;
  }

  .services-platform-icon {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .services-coming-soon-banner {
    font-size: 0.6rem;
    padding: 6px 35px;
    top: 25px;
    right: -30px;
  }
}

@media (max-width: 600px) {
  .services-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .services-game-card {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .services-header h1 {
    font-size: 2rem;
  }

  .services-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .services-game-card {
    height: 180px;
  }

  .services-game-info {
    padding: 10px;
  }

  .services-game-title {
    font-size: 0.85rem;
  }

  .services-platform-icons {
    gap: 4px;
  }

  .services-platform-icon {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }
}

/* Loading Animation */
.services-game-card.services-loading .services-game-image img {
  opacity: 0;
}

.services-game-card.services-loading .services-game-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #202020 0%, #2a2a2a 50%, #202020 100%);
  background-size: 200% 100%;
  animation: services-shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes services-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.services-game-card .services-game-image img.services-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* No Results Message */
.services-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.services-no-results.services-show {
  display: block;
}

.services-no-results i {
  font-size: 4rem;
  color: var(--color-subtext);
  margin-bottom: 20px;
  opacity: 0.5;
}

.services-no-results h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.services-no-results p {
  font-size: 1rem;
  color: var(--color-subtext);
}

/* Coming Soon Banner */
.services-coming-soon-banner {
  position: absolute;
  top: 30px;
  right: -35px;
  background: var(--color-primary);
  color: var(--color-text);
  padding: 8px 45px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.services-coming-soon-banner::before,
.services-coming-soon-banner::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.services-coming-soon-banner::before {
  left: 0;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent var(--color-primary-dark) transparent;
  transform: translate(-8px, -8px);
}

.services-coming-soon-banner::after {
  right: 0;
  border-width: 8px 8px 0 0;
  border-color: var(--color-primary-dark) transparent transparent transparent;
  transform: translate(8px, 100%);
}
/* New badge styling */
.services-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #dd023c, #ff1744);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(221, 2, 60, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
}

/* Glow effect for new games */
.services-new-game {
  position: relative;
  animation: card-glow 3s ease-in-out infinite;
}

.services-new-game::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #dd023c, #ff1744, #dd023c);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  animation: glow-pulse 3s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes card-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(221, 2, 60, 0.3), 0 0 30px rgba(221, 2, 60, 0.2);
  }
}