/* Game Portal — Related Posts */

.gpr-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--wp--preset--color--outline, #e5e7eb);
}

/* Heading */
.gpr-heading-bar {
    margin-bottom: 14px;
}

.gpr-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--wp--preset--color--heading, #111);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--wp--preset--color--primary, #333);
    padding-left: 10px;
}

.gpr-platform-label {
    font-size: 12px;
    font-weight: 600;
    background: var(--wp--preset--color--primary, #333);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Grid */
.gpr-grid {
    display: grid;
    gap: 8px;
}

@media (max-width: 900px) { .gpr-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 600px) { .gpr-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* Card */
.gpr-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .2s;
}

.gpr-card:hover { transform: translateY(-3px); }

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

.gpr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.gpr-card:hover .gpr-img img { transform: scale(1.05); }

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

/* Badge */
.gpr-badge {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 3px 5px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.gpr-badge img {
    height: 13px;
    width: auto;
    display: block;
}

/* Title */
.gpr-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;
}

.gpr-card:hover .gpr-title {
    color: var(--wp--preset--color--primary, #333);
}
