/**
 * VCE Games List Stylesheet
 */

.vce-container {
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
    font-family: inherit;
}

.vce-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.vce-filter-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.vce-filter-btn:hover,
.vce-filter-btn.vce-active {
    background: #e50914;
    color: #ffffff;
    border-color: #e50914;
}

.vce-games-wrapper {
    display: flex;
    justify-content: center;
}

.vce-games-grid {
    display: grid;
    grid-template-columns: repeat(var(--vce-columns, 3), var(--vce-img-width, 300px));
    column-gap: var(--vce-gap-h, 30px);
    row-gap: var(--vce-gap-v, 50px);
}

.vce-game-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    will-change: transform, opacity;
}

.vce-game-img-link {
    width: 100%;
    display: block;
    margin-bottom: var(--vce-img-margin-bottom, 12px);
    text-decoration: none;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.vce-game-img-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vce-game-img-link:hover img {
    transform: scale(1.03);
}

/* --- MINI MODE OVERLAY --- */
.vce-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
    border-radius: inherit;
}

.vce-game-img-link:hover .vce-game-overlay {
    opacity: 1;
}

.vce-game-title-overlay {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.vce-game-tags-overlay {
    font-size: 1.1em;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* --- REGULAR MODE --- */
.vce-game-title {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.2;
    text-align: left;
    transition: color 0.3s ease;
}

.vce-game-title:hover {
    text-decoration: underline;
    color: #e50914;
}

.vce-game-tags {
    font-size: 1.1em;
    color: #ffffff;
    opacity: 0.7;
    text-align: left;
    line-height: 1.4;
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .vce-games-grid {
        grid-template-columns: repeat(2, var(--vce-img-width, 300px));
    }
}

@media (max-width: 600px) {
    .vce-games-grid {
        grid-template-columns: minmax(100px, var(--vce-img-width, 300px));
        justify-content: center;
    }
    .vce-games-wrapper {
        padding: 0 15px;
    }
}
