/* === Games Page === */

/* Hero */
.games-hero {
    background: linear-gradient(135deg, #1B3A12 0%, #33691E 50%, #1B3A12 100%);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.games-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/germ-frenzy-hero.jpg') center center / cover no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.games-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 40px;
}

.games-hero__text {
    text-align: left;
    flex: 1;
}

.games-hero__featured {
    flex-shrink: 0;
}

.games-hero__featured-img {
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s ease;
}

.games-hero__featured-img:hover {
    transform: scale(1.03);
}

.games-hero__badge {
    display: inline-block;
    background: #7CB342;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.games-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.games-hero__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    line-height: 1.6;
}

.games-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    background: #7CB342;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.games-hero__cta:hover {
    background: #558B2F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
}

.games-hero__cta svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

@media (max-width: 767px) {
    .games-hero__content {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }
    .games-hero__text {
        text-align: center;
    }
    .games-hero__featured-img {
        width: 100%;
        max-width: 320px;
    }
    .games-hero h1 {
        font-size: 28px;
    }
}

/* Filter Tabs */
.games-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0 10px;
    flex-wrap: wrap;
}

.games-filter-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.games-filter-btn:hover {
    border-color: #7CB342;
    color: #7CB342;
}

.games-filter-btn.active {
    background: #7CB342;
    border-color: #7CB342;
    color: #fff;
}

/* Games Grid */
.games-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Game Card */
.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.game-card__thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.game-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card__thumb img {
    transform: scale(1.08);
}

/* Overlay on hover */
.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 58, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-card__play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #7CB342;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    transition: transform 0.3s ease;
}

.game-card:hover .game-card__play-btn {
    transform: scale(1);
}

.game-card__play-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 3px;
}

.game-card__info {
    padding: 12px 14px 16px;
}

.game-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #181818;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__genre {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #7CB342;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Game Detail Modal */
.game-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.game-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.game-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.game-modal-overlay.active .game-modal {
    transform: translateY(0) scale(1);
}

.game-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s;
}

.game-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.game-modal__banner {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
}

.game-modal__body {
    padding: 30px;
}

.game-modal__title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #181818;
    margin: 0 0 6px;
}

.game-modal__genre {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #7CB342;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

.game-modal__desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 24px;
}

.game-modal__stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.game-modal__store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    color: #555;
    background: #fff;
}

.game-modal__store-btn:hover {
    border-color: #7CB342;
    color: #7CB342;
}

.game-modal__store-btn img {
    width: 22px;
    height: 22px;
}

.game-modal__store-btn .coming-label {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

/* Empty state */
.games-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-family: 'Poppins', sans-serif;
}

.games-empty svg {
    width: 64px;
    height: 64px;
    fill: #ddd;
    margin-bottom: 16px;
}

/* Count */
.games-count {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 0 0 10px;
}

@media (max-width: 767px) {
    .games-hero {
        padding: 60px 20px 40px;
    }
    .games-hero h1 {
        font-size: 28px;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .game-card__info {
        padding: 10px 10px 14px;
    }
    .game-card__title {
        font-size: 12px;
    }
    .game-modal__banner {
        height: 180px;
    }
    .game-modal__body {
        padding: 20px;
    }
    .game-modal__title {
        font-size: 20px;
    }
}
