/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- Reset & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a0f3d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #b794f6 50%, #ff6ec7 100%);
  border-radius: 6px;
  border: 2px solid #1a0f3d;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #c4b5fd 50%, #ff8fd6 100%);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #b794f6 #1a0f3d;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #251853 0%, #1a0f3d 50%, #0f0828 100%);
  min-height: 100vh;
  color: #fff;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  max-height: calc(100vh + 12rem);
  background: radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.2) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Home Button */
.home-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(183, 148, 246, 0.15);
  border: 1px solid rgba(183, 148, 246, 0.3);
  border-radius: 8px;
  color: #b794f6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-size: 0.95rem;
  z-index: 100;
}

@media (max-width: 768px) {
  .home-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .home-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    gap: 0.35rem;
  }
}

.home-btn:hover {
  background: rgba(183, 148, 246, 0.25);
  border-color: #b794f6;
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 4.5rem;
}

@media (max-width: 768px) {
  .header {
    margin-bottom: 2rem;
    padding-top: 4rem;
  }
}

@media (max-width: 480px) {
  .header {
    margin-bottom: 1.5rem;
    padding-top: 3.5rem;
  }
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 2rem;
  }
}

.header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    gap: 1rem;
    padding: 0.5rem 0;
  }
}

/* Game Card */
.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 148, 246, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(183, 148, 246, 0.5);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

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

/* Game Image */
.game-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

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

.game-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.game-status.current {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Game Info */
.game-info {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.game-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #b794f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .game-info h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .game-info h3 {
    font-size: 1.2rem;
  }
}

.game-genre {
  color: rgba(183, 148, 246, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.game-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  color: #b794f6;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.game-hours i {
  font-size: 0.8rem;
}

.game-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .game-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .game-card {
    border-radius: 12px;
  }

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

@media (max-width: 480px) {
  .game-info {
    padding: 1.2rem;
  }

  .game-image {
    height: 160px;
  }

  .game-genre {
    font-size: 0.85rem;
  }

  .game-hours {
    font-size: 0.8rem;
  }
}
