﻿.game-card {
    background: #15161b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2b36;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

    .game-card:hover {
        transform: translateY(-10px);
        border-color: #6c3cf7;
        box-shadow: 0 15px 35px rgba(108,60,247,.2),0 0 15px rgba(62,207,142,.1);
    }

.game-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

    .game-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.game-card:hover .game-card-thumb img {
    transform: scale(1.08);
}

.game-card-thumb::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top,#15161b,transparent);
}

.game-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
    text-decoration: none;
    transition: .3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .game-card-title:hover {
        color: #3ecf8e;
    }

.game-card-footer {
    margin-top: auto;
    border-top: 1px solid #2a2b36;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #6c3cf7;
    padding: 2px;
    background: #fff;
    object-fit: cover;
}

.author-name {
    margin: 0;
    color: #a0a5b5;
    font-size: .9rem;
    font-weight: 600;
    transition: .3s;
}

.author-info:hover .author-name {
    color: #fff;
}

.read-more-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(108,60,247,.1);
    color: #6c3cf7;
    transition: .3s;
}

.game-card:hover .read-more-btn {
    background: #6c3cf7;
    color: #fff;
}
