/**
 * TGP Game Hub - Post/Article embeds
 *
 * Lean stylesheet loaded ONLY on standard posts (articles). Contains just the
 * components that can render inside an article or its sidebar: the "In This Article"
 * featured-game box, the Follow CTA, the review-summary shortcode, and the two
 * sidebar widgets. The full game-hub.css (game pages only) is a superset of this.
 *
 * Boxes use SOLID dark backgrounds (not white-over-page alpha) so they stay readable
 * whether the Foxiz theme is in light or dark mode.
 */

:root {
    --tgp-bg: #19192a;
    --tgp-surface-solid: #1e1e32;
    --tgp-border: rgba(255, 255, 255, 0.08);
    --tgp-accent: #ff8a00;
    --tgp-accent-hover: #ff9f2e;
    --tgp-text: #f0f0f5;
    --tgp-text-muted: rgba(255, 255, 255, 0.65);
    --tgp-radius: 10px;
    --tgp-radius-sm: 6px;
    --tgp-transition: 0.15s ease;
}

/* ========================================
   Follow CTA Box (appended to article content)
   ======================================== */
.tgp-mfg-follow {
    position: relative;
    margin: 30px 0;
    padding: 24px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(25, 25, 42, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 1;
}

/* Animated gradient left-border accent (cheap: 4px wide). */
.tgp-mfg-follow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4285F4, #EA4335, #FBBC05, #34A853, #4285F4);
    background-size: 100% 200%;
    animation: tgpGradientSlide 3s linear infinite;
}

@keyframes tgpGradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

/* Static corner glow — the previously-animated blur(40px) pulse was expensive on
   mobile compositors, so it is now a still accent. */
.tgp-mfg-follow::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, rgba(234, 67, 53, 0.1) 30%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.tgp-mfg-follow p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-style: normal !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tgp-mfg-follow p em { font-style: normal; }

.tgp-mfg-follow a {
    position: relative;
    font-weight: 700;
    font-style: normal;
    text-decoration: none !important;
    background: linear-gradient(90deg, #4285F4 0%, #EA4335 33%, #FBBC05 66%, #34A853 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tgpLinkShine 4s linear infinite;
    transition: opacity 0.3s ease;
}

@keyframes tgpLinkShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.tgp-mfg-follow a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url('https://thegamepost.com/wp-content/uploads/2025/09/google-icon-3.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 767px) {
    .tgp-mfg-follow { margin: 24px 0; padding: 20px 22px; }
    .tgp-mfg-follow p { font-size: 14px; text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tgp-mfg-follow::before,
    .tgp-mfg-follow a {
        animation: none !important;
    }
}

/* ========================================
   "In This Article" Featured Game Block
   ======================================== */
.tgp-mfg { margin: 24px 0; }

.tgp-mfg-inner {
    background: var(--tgp-surface-solid);
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    padding: 14px;
    color: var(--tgp-text);
}

.tgp-mfg-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tgp-accent);
    margin-bottom: 10px;
}

.tgp-mfg-game {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.tgp-mfg-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--tgp-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
}

.tgp-mfg-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--tgp-radius-sm);
    background: linear-gradient(135deg, #2a2a3d, #1a1a2a);
}

.tgp-mfg-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.tgp-mfg-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tgp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tgp-mfg-date { font-size: 0.8rem; color: var(--tgp-text-muted); }

.tgp-mfg-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--tgp-accent);
    border-radius: var(--tgp-radius-sm);
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--tgp-transition);
}

.tgp-mfg-cta:hover { background: var(--tgp-accent-hover); }

/* ========================================
   Sidebar Widgets (Game Details + More on Game)
   ======================================== */
.tgp-fg-card {
    background: var(--tgp-surface-solid);
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    padding: 16px;
    color: var(--tgp-text);
}

.tgp-fg-thumb { display: block; margin-bottom: 12px; }

.tgp-fg-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--tgp-radius-sm);
}

.tgp-fg-title { font-size: 1rem; font-weight: 700; margin: 0 0 12px; text-align: center; }
.tgp-fg-title a { color: var(--tgp-text); text-decoration: none; }
.tgp-fg-title a:hover { color: var(--tgp-accent); }
.tgp-fg-meta { margin: 0 0 14px; padding: 0; }

.tgp-fg-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--tgp-border);
}

.tgp-fg-row:last-child { border-bottom: none; }
.tgp-fg-row dt { font-size: 0.75rem; font-weight: 600; color: var(--tgp-text-muted); }
.tgp-fg-row dd { font-size: 0.8rem; color: var(--tgp-text); margin: 0; text-align: right; }
.tgp-fg-buy { display: flex; flex-direction: column; gap: 6px; }

.tgp-fg-btn {
    display: block;
    padding: 8px 12px;
    background: var(--tgp-accent);
    border-radius: var(--tgp-radius-sm);
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background var(--tgp-transition);
}

.tgp-fg-btn:hover { background: var(--tgp-accent-hover); }

/* More on Game — bare list that lives in a theme-styled widget, so links inherit
   the surrounding text color (readable in both Foxiz light and dark modes). */
.tgp-more-list { list-style: none; margin: 0; padding: 0; }
.tgp-more-list li { padding: 8px 0; border-bottom: 1px solid var(--tgp-border); }
.tgp-more-list li:last-child { border-bottom: none; }
.tgp-more-list a { color: inherit; text-decoration: none; font-size: 0.9rem; transition: color var(--tgp-transition); }
.tgp-more-list a:hover { color: var(--tgp-accent); }

/* ========================================
   Review Summary shortcode
   ======================================== */
.tgp-review-summary {
    display: flex;
    gap: 20px;
    background: var(--tgp-surface-solid);
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    padding: 20px;
    margin: 20px 0;
    color: var(--tgp-text);
}

.tgp-rs-left { text-align: center; padding-right: 20px; border-right: 1px solid var(--tgp-border); }
.tgp-score { font-size: 2.5rem; font-weight: 900; color: var(--tgp-accent); line-height: 1; }

/* Renamed from .tgp-score-label to avoid colliding with the game-page score card. */
.tgp-rs-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--tgp-text-muted); margin-top: 4px; }

.tgp-rs-right { flex: 1; }
.tgp-pros, .tgp-cons { margin-bottom: 12px; }
.tgp-pros:last-child, .tgp-cons:last-child { margin-bottom: 0; }
.tgp-pros strong, .tgp-cons strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.tgp-pros strong { color: #4ade80; }
.tgp-cons strong { color: #f87171; }
.tgp-pros p, .tgp-cons p { margin: 0; font-size: 0.9rem; color: var(--tgp-text-muted); }

/* ========================================
   IGDB Attribution
   ======================================== */
.tgp-igdb-attribution { text-align: center; padding: 20px 0; margin-top: 30px; border-top: 1px solid var(--tgp-border); }
.tgp-igdb-attribution p { margin: 0; font-size: 0.75rem; color: var(--tgp-text-muted); }
.tgp-igdb-attribution a { color: var(--tgp-text-muted); text-decoration: none; transition: color var(--tgp-transition); }
.tgp-igdb-attribution a:hover { color: var(--tgp-accent); }
