﻿/* =======================================================================
   GAMES — like COMMUNITY (isolated classes, no collisions with site.css)
   ======================================================================= */

.gs-games-card {
    margin-top: 18px;
    border-radius: 22px;
    padding: 22px 26px 24px;
    background: radial-gradient(circle at top left, rgba(22, 46, 103, 0.7), rgba(6, 15, 39, 0.96));
    border: 1px solid rgba(88, 141, 255, 0.28);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.95);
}

/* toolbar */
.gs-games-toolbar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.gs-games-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gs-games-search-input {
    width: min(420px, 72vw);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: .9rem;
    color: #d5e3ff;
    border: 1px solid rgba(88,141,255,.22);
    background: radial-gradient(circle at top left, rgba(22,46,103,.35), rgba(6,15,39,.96));
    outline: none;
    box-shadow: 0 12px 26px rgba(2,6,23,.55);
}

    .gs-games-search-input::placeholder {
        color: rgba(213,227,255,.65);
    }

.gs-games-search-btn {
    border: 1px solid rgba(88,141,255,.22);
    background: radial-gradient(circle at top left, rgba(22,46,103,.45), rgba(6,15,39,.96));
    color: #d5e3ff;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: .84rem;
    transition: transform .15s ease, border-color .15s ease;
}

    .gs-games-search-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(88,141,255,.35);
    }

/* header row */
.gs-games-header-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
    column-gap: 24px;
    padding: 0 6px 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(88, 141, 255, 0.25);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9fb3ff;
}

.gs-games-header-row--with-admin {
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr);
}

.gs-games-col-meta,
.gs-games-col-admin {
    text-align: right;
}

/* list */
.gs-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gs-games-row-wrapper {
    padding: 6px 0;
}

.gs-games-divider {
    height: 2px;
    margin: 10px 10px 20px 0px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(125, 211, 252, 0.95), rgba(56, 189, 248, 0));
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
    pointer-events: none;
}

/* row */
.gs-games-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
    column-gap: 24px;
    align-items: start;
    padding: 12px 22px 12px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(3, 7, 18, 0.98));
    border: 1px solid rgba(56, 116, 217, 0.4);
}

.gs-games-row--with-admin {
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr);
}

.gs-games-row--banned {
    opacity: 0.55;
    filter: saturate(0.85);
}

/* main */
.gs-games-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.gs-games-thumb {
    width: 216px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(10,20,40,.55), rgba(2,6,23,.95));
    border: 1px solid rgba(88,141,255,.22);
    flex-shrink: 0;
}

    .gs-games-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.gs-games-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
    min-width: 0;
}

.gs-games-title {
    font-size: 0.96rem;
    color: #e5edff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gs-games-desc {
    font-size: 0.9rem;
    color: #c3d0ff;
    opacity: 0.95;
}

/* meta */
.gs-games-meta-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.gs-games-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.gs-games-tag {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #c7d2fe;
    border: 1px solid rgba(129, 178, 255, 0.5);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.95));
}

/* admin */
.gs-games-admin {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.gs-games-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.gs-games-admin-btn {
    border: 1px solid rgba(88,141,255,.22);
    background: radial-gradient(circle at top left, rgba(22,46,103,.45), rgba(6,15,39,.96));
    color: #d5e3ff;
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: .82rem;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 12px 26px rgba(2,6,23,.75);
    white-space: nowrap;
}

    .gs-games-admin-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(88,141,255,.35);
    }

.gs-games-admin-btn--ban {
    border-color: rgba(255,140,140,.25);
    background: radial-gradient(circle at top left, rgba(120,40,60,.45), rgba(6,15,39,.96));
}

.gs-games-admin-btn--unban {
    border-color: rgba(160,255,220,.28);
    background: radial-gradient(circle at top left, rgba(20,110,80,.45), rgba(6,15,39,.96));
}

.gs-games-empty {
    margin: 0;
    padding: 14px 6px;
    font-size: 0.9rem;
    color: #9fb3ff;
    opacity: 0.9;
}

/* responsive */
@media (max-width: 900px) {
    .gs-games-header-row {
        display: none;
    }

    .gs-games-row,
    .gs-games-row--with-admin {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
        align-items: stretch;
    }

    .gs-games-meta {
        justify-content: flex-start;
    }

    .gs-games-admin {
        justify-content: flex-start;
    }

    .gs-games-admin-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .gs-games-divider {
        margin: 6px 18px 10px 18px;
    }

    .gs-games-thumb {
        width: 180px;
        height: 100px;
    }
}

/* =======================================================================
   INTERACTIVE HOVER (lift + glow)
   ======================================================================= */

.gs-games-row {
    position: relative;
    cursor: pointer; /* чтобы сразу читалась интерактивность */
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    will-change: transform;
}

    /* мягкое "свечение" поверх фона */
    .gs-games-row::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        transition: opacity .16s ease;
        /* блик + легкий неон */
        background: radial-gradient(circle at 18% 12%, rgba(125, 211, 252, 0.18), rgba(0,0,0,0) 55%), radial-gradient(circle at 85% 50%, rgba(59, 130, 246, 0.12), rgba(0,0,0,0) 60%);
    }

    .gs-games-row:hover,
    .gs-games-row:focus-within {
        transform: translateY(-4px);
        border-color: rgba(125, 211, 252, 0.55);
        box-shadow: 0 20px 46px rgba(2, 6, 23, 0.92), 0 0 0 1px rgba(125, 211, 252, 0.12) inset, 0 0 26px rgba(59, 130, 246, 0.22);
    }

        .gs-games-row:hover::before,
        .gs-games-row:focus-within::before {
            opacity: 1;
        }

/* аккуратнее для забаненных — они всё ещё "не такие" */
.gs-games-row--banned:hover,
.gs-games-row--banned:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.8);
}

/* чтоб outline у ссылки не выглядел как "рандомная рамка" */
.gs-games-main:focus {
    outline: none;
}

/* уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .gs-games-row,
    .gs-games-row::before {
        transition: none;
    }
}

.gs-games-row:hover .gs-games-thumb,
.gs-games-row:focus-within .gs-games-thumb {
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.22);
    transition: border-color .16s ease, box-shadow .16s ease;
}

