/* Game Portal Grid v4 */

.gpg-heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
}

/* Grid */
.gpg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
    margin-bottom: 30px;
}
@media (min-width: 600px) { .gpg-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .gpg-grid { grid-template-columns: repeat(6, 1fr); } }

/* Card */
.gpg-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .2s;
}
.gpg-card:hover { transform: translateY(-4px); }

/* Image wrap */
.gpg-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    background: #ccc;
    margin-bottom: 6px;
}

/* Cover */
.gpg-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.gpg-card:hover .gpg-cover { transform: scale(1.05); }

.gpg-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #888;
}

/* Badge bar — full width di atas foto */
.gpg-badge-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 6px;
    z-index: 3;
}

.gpg-badge-bar img {
    height: 14px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 600px) {
    .gpg-badge-bar { padding: 4px 7px; }
    .gpg-badge-bar img { height: 16px; }
}

@media (min-width: 900px) {
    .gpg-badge-bar { padding: 5px 8px; }
    .gpg-badge-bar img { height: 18px; }
}

/* Title */
.gpg-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--wp--preset--color--heading, #111);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 0 2px;
}
.gpg-card:hover .gpg-title { color: var(--wp--preset--color--primary, #333); }

/* ── Badge di single post ─────────────────────────────────── */
.gp-cover-badge-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    z-index: 3;
}

.gp-cover-badge-bar img {
    height: 22px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Pagination */
.gpg-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding-bottom: 30px;
}
.gpg-pagination span a,
.gpg-pagination span .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none !important;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.gpg-pagination span a:hover {
    background: var(--wp--preset--color--primary, #0073aa);
    color: #fff !important;
    border-color: var(--wp--preset--color--primary, #0073aa);
}
.gpg-pagination span .current {
    background: var(--wp--preset--color--primary, #0073aa);
    color: #fff !important;
    border-color: var(--wp--preset--color--primary, #0073aa);
}
.gpg-pagination span .dots { border: none; background: transparent; }
