/* Games Page Specific Styles */

/* Games Hero Section */
.games-hero {
    padding: 120px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.games-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.games-hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
}

.games-hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #cccccc;
}

.games-hero-character img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* Games Collection */
.games-collection {
    padding: 80px 0;
    background: #333333;
}

.games-grid {
    display: grid;
  
    grid-template-columns: 1fr 1fr 306px 1fr 1fr;
    gap: 20px;
    margin-bottom: -80px;
}

.games-card {
    width: 100%;
    transition: all 0.3s ease;
}

.games-card:hover {
    transform: translateY(-15px) !important;
}

@media (min-width:768.1px){
   .games-card:nth-child(1),
  .games-card:nth-child(2) {
    transform: rotate(-8deg);
  }

  .games-card:nth-child(4),
  .games-card:nth-child(5) {
    transform: rotate(8deg);
  }
  
}
.games-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.game-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.game-card.featured .game-image {
    height: 300px;
}

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

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-button {
    background: #4ECDC4;
    color: #2a2a2a;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.play-button:hover {
    background: #45b8b0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.game-info {
    padding: 25px;
}

.game-card.featured .game-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.game-card.featured .game-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.game-genre {
    color: #4ECDC4;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card.featured .game-genre {
    font-size: 1rem;
    margin-bottom: 20px;
}

.game-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-card.featured .game-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    font-size: 1.2rem;
}

.game-rating span {
    color: #4ECDC4;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design for Games Page */
@media (max-width: 1024px) {
    .game-card.featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    
    .game-card.featured .game-image {
        height: 250px;
    }
    
    .games-grid {
        grid-template-columns: 1fr 1fr 260px 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .games-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .games-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .games-grid {
      padding-left: 20px;
      padding-right: 20px;
        grid-template-columns: 1fr 1fr;
    }
    
    .game-card {
        margin: 0 10px;
    }
    
    .game-info {
        padding: 20px;
    }
    
    .game-card.featured .game-info {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .games-hero-content h1 {
        font-size: 2rem;
    }
    
    .game-image {
        height: 200px;
    }
    
    .game-card.featured .game-image {
        height: 200px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        margin: 0 5px;
    }
}

/* Animation Enhancements for Games Page */
@keyframes gameCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.game-card {
    animation: gameCardEntrance 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading Animation */
.game-card {
    opacity: 0;
}

.game-card.loaded {
    opacity: 1;
}

/* Hover Effects Enhancement */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Featured Game Special Effects */
.game-card.featured {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #4ECDC4;
}

.game-card.featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4ECDC4;
    color: #2a2a2a;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
}