﻿.games-toolbar {
    border-radius: 16px;
}

    .games-toolbar .form-label {
        margin-bottom: 8px;
        color: #343a40;
    }

.games-result-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 58px;
}

.games-grid-view .game-item,
.games-list-view .game-item {
    transition: all .2s ease;
}

.games-list-view .game-item {
    margin-bottom: 2px;
}

.games-list-view .category-card {
    flex-direction: row;
    align-items: center;
    padding: 16px;
    overflow: hidden;
    gap: 18px;
}

    .games-list-view .category-card .card-img-top {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
        height: 180px;
        min-height: 180px;
        margin: 0;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
        object-fit: cover;
    }

    .games-list-view .category-card .card-body {
        padding: 8px 10px 8px 4px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

.games-list-view .category-title {
    border-bottom: 1px solid #c95a5a;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.games-list-view .card-desc {
    -webkit-line-clamp: 3;
    min-height: auto;
    margin-bottom: 18px;
}

.games-list-view .game-go-btn {
    align-self: flex-start !important;
}

@media (max-width: 991.98px) {
    .games-list-view .category-card {
        gap: 16px;
    }

        .games-list-view .category-card .card-img-top {
            width: 220px;
            min-width: 220px;
            max-width: 220px;
            height: 165px;
            min-height: 165px;
        }
}

@media (max-width: 767.98px) {
    .games-list-view .category-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 0;
    }

        .games-list-view .category-card .card-img-top {
            width: calc(100% - 8px);
            min-width: 0;
            max-width: none;
            height: 180px;
            min-height: 180px;
            margin: 0 auto 12px auto;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }

        .games-list-view .category-card .card-body {
            padding: 8px 8px 4px 8px;
        }

    .games-list-view .game-go-btn {
        align-self: stretch !important;
    }
}

.game-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    width: 100%;
}

    .game-card-actions .btn {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-weight: 700;
        border-radius: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }

.game-play-btn {
    box-shadow: 0 6px 14px rgba(25, 135, 84, 0.22);
}

.game-go-btn {
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.16);
}

.game-card:hover .game-play-btn {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 18px rgba(25, 135, 84, 0.28);
}

.game-card:hover .game-go-btn {
    transform: translateY(-1px);
}

.game-card-actions .btn i {
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .game-card-actions {
        flex-direction: column;
    }

        .game-card-actions .btn {
            width: 100%;
        }
}