/* Games Page Hero */
.games-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.games-list {
    padding: 80px 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-img {
    height: 200px;
    width: 100%;
}

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

.game-link:visited,
.game-link:active,
.game-link:focus {
    color: inherit;
    outline: none;
}

.game-info {
    padding: 10px 20px 20px;
    text-align: center;
}

.game-card h3 {
    margin: 20px 0 10px;
}

.game-card p {
    color: #666;
    padding-bottom: 10px;
}

/* Game Detail Page */
.game-detail-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    z-index: -1;
}

.game-header h1 {
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.game-tagline {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.game-platforms {
    justify-content: flex-start;
}

.game-platforms a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.game-platforms a:hover {
    background-color: #ff3e3e;
    color: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
}

.story-content h2, .video-content h2, .game-gallery h2 {
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.story-content h2::after, .video-content h2::after, .game-gallery h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #ff3e3e;
}

.story-text {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-gallery {
    padding-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 36px;
    }
    .game-detail-hero {
        height: 50vh;
    }
}
