/* ===== استایل‌های مشترک تمام شورت‌کدها ===== */

.ggg-chip {
    display: inline-block;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    line-height: 1.4;
}
.ggg-chip:hover {
    border-color: #aaa;
    color: #222;
}
.ggg-chip:active {
    transform: scale(.95);
}
.ggg-chip.ggg-active {
    background: #222;
    color: #fff;
    border-color: #222;
    font-weight: 500;
}

.ggg-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
    animation: ggg-fade-in .25s ease both;
}
.ggg-card:hover {
    border-color: #aaa;
    transform: translateY(-2px);
}
.ggg-card-cover {
    height: 110px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ggg-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ggg-card-cover-placeholder {
    font-size: 36px;
    opacity: .7;
}
.ggg-card-body {
    padding: 10px 12px 13px;
}
.ggg-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ggg-card-count {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
    width: fit-content;
}
.ggg-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.ggg-card-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #555;
}

.ggg-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    font-size: 14px;
}

.ggg-grid-leaving,
#ggg-grid.ggg-leaving {
    opacity: 0;
    transform: scale(.98);
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
}

@keyframes ggg-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== حالت دارک ===== */
@media(prefers-color-scheme: dark) {
    .ggg-chip {
        background: #1a1a1a;
        color: #bbb;
        border-color: #444;
    }
    .ggg-chip:hover {
        border-color: #888;
        color: #eee;
    }
    .ggg-chip.ggg-active {
        background: #eee;
        color: #111;
        border-color: #eee;
    }
    .ggg-card {
        background: #1e1e1e !important;
        border-color: #333 !important;
    }
    .ggg-card-title {
        color: #eee !important;
    }
    .ggg-card-count {
        background: #2a2a2a !important;
        color: #aaa !important;
    }
    .ggg-card-tag {
        background: #2a2a2a !important;
        color: #aaa !important;
    }
}

/* ===== کلاس‌های رنگ تگ‌ها ===== */
.ggg-tag-sport {
    background: rgba(255, 107, 53, 0.12) !important;
    border: 1px solid rgba(255, 107, 53, 0.25) !important;
    color: #ff6b35 !important;
}
.ggg-tag-fps {
    background: rgba(255, 68, 68, 0.12) !important;
    border: 1px solid rgba(255, 68, 68, 0.25) !important;
    color: #ff4444 !important;
}
.ggg-tag-pc {
    background: rgba(74, 111, 165, 0.12) !important;
    border: 1px solid rgba(74, 111, 165, 0.25) !important;
    color: #4a6fa5 !important;
}
.ggg-tag-ps5 {
    background: rgba(0, 48, 135, 0.12) !important;
    border: 1px solid rgba(0, 48, 135, 0.25) !important;
    color: #003087 !important;
}
.ggg-tag-xbox {
    background: rgba(16, 124, 16, 0.12) !important;
    border: 1px solid rgba(16, 124, 16, 0.25) !important;
    color: #107c10 !important;
}
.ggg-tag-switch {
    background: rgba(230, 0, 18, 0.12) !important;
    border: 1px solid rgba(230, 0, 18, 0.25) !important;
    color: #c8000f !important;
}
.ggg-tag-release {
    background: rgba(0, 168, 107, 0.12) !important;
    border: 1px solid rgba(0, 168, 107, 0.25) !important;
    color: #00965e !important;
}
.ggg-tag-update {
    background: rgba(255, 107, 107, 0.12) !important;
    border: 1px solid rgba(255, 107, 107, 0.25) !important;
    color: #e64a4a !important;
}
.ggg-tag-default {
    background: rgba(102, 102, 102, 0.10) !important;
    border: 1px solid rgba(102, 102, 102, 0.18) !important;
    color: #6a6a6a !important;
}