/* public/css/game-hero-1.css — Stand-alone styles for the Game hero (uses site theme vars) */

/* Section background matches site "section-dark-background" */
.hgame-1 {
    color: var(--white-color-1);
    font-family: var(--identity-font);
    background-color: var(--section-dark-background-color);
    padding-top: 32px;
    padding-bottom: 0px;
    position: relative;
}

/* Header layout: cover + text, socials anchored top-right */
.hgame-head {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.hgame-head-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
}

/* Cover (fixed aspect ratio 285/380) */
.hgame-cover-wrap {
    width: clamp(160px, 93.3333px + 16.6667vw, 285px);
    aspect-ratio: 285 / 380;
    border-radius: 16px;
    overflow: hidden;
}

.hgame-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Titles */
.hgame-titles {
    min-width: 0;
}

.hgame-title {
    margin: 0 0 8px 0;
    font-weight: var(--font-weight8);
    font-size: var(--ft-40-31);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white-color-1);
}

.hgame-subtitle {
    margin: 0 0 12px 0;
    color: var(--grey-color-2);
    font-weight: var(--font-weight4);
    font-size: var(--ft-20-17);
    line-height: 1.35;
}

/* Rating widget scales with wrapper font-size */
.hgame-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: var(--ft-18-17);
    margin-bottom: 8px;
}


.hgame-meta {
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 1.4px + 0.4vw, 6px);
    margin: 10px 0 0 0;
    padding: 0;
}

.hgame-meta-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
}

.hgame-meta-label {
    color: var(--grey-color-2);
    font-weight: var(--font-weight6);
    font-size: var(--ft-14-13);
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.hgame-meta-value {
    color: var(--white-color-1);
    font-weight: var(--font-weight5);
    font-size: var(--ft-17-15);
    min-width: 0;
    text-transform: capitalize;
}

.hgame-meta-date {
    color: var(--grey-color-2);
    font-weight: var(--font-weight4);
    margin-left: 4px;
    font-size: 0.95em;
}


@media (max-width: 825px) {
    .hgame-meta {
        display: grid;
        grid-template-columns: max-content minmax(0, auto);
        column-gap: 12px;
        row-gap: clamp(3px, 1.4px + 0.4vw, 6px);
        align-items: baseline;
        justify-items: start;
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        padding: 0;
        text-align: left;
    }

    .hgame-meta-item {
        display: contents;
    }

    .hgame-meta-label {
        grid-column: 1;
        justify-self: end;
        text-align: right;
    }

    .hgame-meta-value {
        grid-column: 2;
        min-width: 0;
        overflow-wrap: anywhere;
    }
}


/* Top-right socials bar */
.hgame-socials-bar {
    position: absolute;
    top: 6px;
    right: 0;
}

.hgame-socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hgame-socials .hgame-social {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--white-color-1);
    background: transparent;
    border: 1px solid var(--section-light-background-color);
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.hgame-socials .hgame-social:hover {
    transform: translateY(-1px);
    background: var(--card-color, var(--site-start-color));
    border-color: transparent;
    color: var(--white-color-1);
}

.hgame-socials .hgame-social:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--card-glow, rgba(0, 0, 0, 0));
}

.hgame-socials .hgame-social .hgame-social-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Summary copy */
.hgame-summary {
    margin-top: 32px;
    color: var(--grey-color-1);
    font-weight: 400;
    font-size: var(--ft-17-16);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
    .hgame-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 825px) {
    .hgame-1 {
        padding-top: 24px;
    }

    .hgame-head {
        flex-direction: column;
        align-items: center;
        row-gap: 16px;
    }

    .hgame-head-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
        text-align: center;
    }

    .hgame-actions {
        justify-content: center;
    }

    /* move socials inline on narrow screens */
    .hgame-socials-bar {
        position: static;
        margin-bottom: 10px;
    }


}