/* Kategori kartları — references/EZCheats-kartlar/cards.css (tokens.css alias) */
:root {
    --ez-bg: var(--color-bg);
    --ez-box: var(--color-surface);
    --ez-elevated: var(--color-surface-raised);
    --ez-border: var(--color-border);
    --ez-divider: var(--color-divider);
    --ez-text: var(--color-text);
    --ez-text-2: var(--color-text-secondary);
    --ez-text-3: var(--color-text-muted);
    --ez-accent: var(--color-accent);
    --ez-success: var(--color-success);
    --ez-warning: var(--color-warning);
    --ez-error: var(--color-error);
    --ez-link: var(--color-link);
}

.catalog-items.catalog-items--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .catalog-items.catalog-items--cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .catalog-items.catalog-items--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .catalog-items.catalog-items--cards {
        grid-template-columns: 1fr;
    }
}

.catalog-items__cell .ez-game-card {
    height: 100%;
}

.home-catalog__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.home-catalog__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-text) 4%, transparent);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-catalog__more svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-catalog__more:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
    background: color-mix(in srgb, var(--color-secondary) 14%, transparent);
    transform: translateY(-1px);
}

.home-catalog__more:hover svg {
    transform: translateX(3px);
}

.ez-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ez-box);
    border: 1px solid var(--ez-border);
    border-radius: 14px;
    overflow: hidden;
    color: var(--ez-text);
    text-decoration: none;
    letter-spacing: normal;
    font-size: 14px;
    line-height: 1.4;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.ez-game-card * {
    box-sizing: border-box;
}

.ez-game-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ez-elevated);
    transform: translateZ(0);
    isolation: isolate;
}

.ez-game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.7) brightness(0.9);
    transform: scale(1.001);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: filter 0.3s ease, transform 0.45s ease;
}

.ez-game-media__empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ez-elevated) 92%, #000) 0%, var(--ez-box) 100%);
}

.ez-game-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(30, 32, 36, 0) 35%,
        rgba(30, 32, 36, 0.55) 72%,
        rgba(30, 32, 36, 0.94) 96%,
        var(--ez-box) 100%
    );
    transition: opacity 0.35s ease;
}

.ez-game-card:hover .ez-game-media::after {
    background: linear-gradient(
        180deg,
        rgba(30, 32, 36, 0) 28%,
        rgba(30, 32, 36, 0.62) 68%,
        rgba(30, 32, 36, 0.97) 94%,
        var(--ez-box) 100%
    );
}

.ez-status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 10px 0 9px;
    border-radius: 999px;
    background: rgba(22, 23, 27, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 600;
    color: var(--ez-text);
    letter-spacing: 0.01em;
}

.ez-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ez-success);
}

.ez-status.is-warning i {
    background: var(--ez-warning);
}

.ez-status.is-error i {
    background: var(--ez-error);
}

.ez-game-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 18px 16px;
    margin-top: -14px;
    position: relative;
    z-index: 2;
}

.ez-game-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ez-game-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    background: var(--ez-elevated);
    border: 1px solid var(--ez-border);
    display: grid;
    place-items: center;
}

.ez-game-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.ez-game-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ez-chip {
    flex: none;
    margin-left: auto;
    height: 22px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: var(--ez-elevated);
    border: 1px solid var(--ez-border);
    color: var(--ez-text-2);
    font-size: 11.5px;
    font-weight: 600;
}

.ez-safe {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ez-text-2);
    font-size: 12.5px;
}

.ez-safe svg {
    width: 14px;
    height: 14px;
    flex: none;
    stroke: var(--ez-success);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ez-game-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--ez-divider);
}

.ez-price-label {
    display: block;
    color: var(--ez-text-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ez-price {
    display: block;
    margin-top: 3px;
    color: var(--ez-accent);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ez-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ez-text-2);
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ez-view svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.ez-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--ez-accent);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}

.ez-game-card:hover .ez-game-media img {
    filter: none;
    transform: scale(1.05);
}

.ez-game-card:hover .ez-view {
    color: var(--ez-link);
}

.ez-game-card:hover .ez-view svg {
    transform: translateX(3px);
}

.ez-game-card:focus-visible {
    outline: 2px solid var(--ez-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ez-game-card,
    .ez-game-media img,
    .ez-game-media::after,
    .ez-view svg {
        transition: none;
    }
}
