/* 游戏卡片样式 - 参考图2和图3的设计 */

.game-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 0.125rem solid transparent;
}

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

.game-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.625rem;
}

.game-card-image img {
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    color: #0000;
}

/* 推荐标签 */
.game-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ffd700;
    color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

/* 最新玩的游戏标签 */
.recently-played-badge {
    background: #28a745;
    color: white;
}

/* 悬停覆盖层 - 默认隐藏 */
.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    padding: 0.9375rem;
}

.game-card-title {
    position: absolute;
    bottom: 0.9375rem;
    left: 0.9375rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(0.625rem);
    transition: all 0.3s ease;
}

.game-card-category {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.game-card-stats {
    display: none;
}

.game-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 最新玩的游戏时间显示 */
.game-card-played-time {
    position: absolute;
    bottom: 0.5rem;
    right: 0.9375rem;
    font-size: 0.75rem;
    opacity: 0.8;
    color: #28a745;
    font-weight: 500;
}

.game-card-overlay .btn {
    align-self: center;
    margin-top: auto;
}

/* 悬停效果 - 图3风格 */
.game-card:hover {
    border-color: #3498db;
    box-shadow: 0 0.5rem 1.5625rem rgba(52, 152, 219, 0.3);
    transform: translateY(-0.125rem);
}

/* 最新玩的游戏卡片特殊样式 */
.recently-played-card:hover {
    border-color: #28a745;
    box-shadow: 0 0.5rem 1.5625rem rgba(40, 167, 69, 0.3);
}

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

.game-card:hover .game-card-title {
    opacity: 1;
    transform: translateY(0);
}

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

/* 最新玩的游戏区域标题样式 */
#recently-played-section h3 {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 清空历史按钮样式 */
#recently-played-section .btn-outline-secondary {
    border-color: #28a745;
    color: #28a745;
    transition: all 0.3s ease;
}

#recently-played-section .btn-outline-secondary:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    transform: translateY(-1px);
}

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

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

.game-card:hover .game-card-title {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (min-width: 1080px) {
    .game-card-image {
        
    }
}
@media (max-width: 850px) {
    .game-card-image {
        
    }
    
    .game-card-title {
        font-size: 0.75rem;
    }
    
    .game-card-stats {
        font-size: 0.6875rem;
    }
}
@media (max-width: 590px) {
    .game-card-image {
        
    }
}
