/**
 * assets/featured.css
 * Review of the Week winners (includes/featured_page.php), scoped to
 * .hg-feat. Gold accents mark the distinction, on the site's card style.
 */

.hg-feat { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-normal); color: var(--color-ink); text-align: left; }
.hg-feat *, .hg-feat *::before, .hg-feat *::after { box-sizing: border-box; }
.hg-feat :is(h1, h2) { width: auto; max-width: none; background: none; border: 0; padding: 0; margin: 0; color: var(--color-ink); font-family: var(--font-display); line-height: var(--leading-tight); text-align: left; }
.hg-feat p { margin: 0; }
.hg-feat a:link, .hg-feat a:visited { font-size: inherit; color: var(--color-brand); text-decoration: none; }
.hg-feat a:hover { color: var(--color-brand-dark); text-decoration: underline; }

.hg-feat .ft-head { margin: 0 0 var(--space-6); }
.hg-feat .ft-kicker { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #B8860B; }
.hg-feat h1.ft-title { margin-top: var(--space-1); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.01em; }
.hg-feat .ft-intro { margin-top: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--color-ink-muted); }

/* The latest winner. */
.hg-feat .ft-latest { display: flex; gap: var(--space-6); padding: var(--space-6); margin: 0 0 var(--space-8); border: 1px solid #F0D9A0; border-radius: 16px;
    background: linear-gradient(135deg, #FFF6DD 0%, #fff 60%); box-shadow: 0 8px 24px rgba(184, 134, 11, 0.12); }
.hg-feat .ft-latest-cover { flex-shrink: 0; line-height: 0; }
.hg-feat .ft-latest-cover img { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(15, 77, 140, 0.18); }
.hg-feat .ft-latest-main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.hg-feat .ft-latest-label { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #D4A017; color: #fff; font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.hg-feat h2.ft-latest-title { font-size: var(--text-2xl); font-weight: 800; }
.hg-feat h2.ft-latest-title a:link, .hg-feat h2.ft-latest-title a:visited { color: var(--color-ink); }
.hg-feat h2.ft-latest-title a:hover { color: var(--color-brand); text-decoration: none; }
.hg-feat .ft-latest-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: var(--text-sm); color: var(--color-ink-muted); }
.hg-feat .ft-latest-excerpt { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--color-ink-muted); }
.hg-feat a.ft-read { font-size: var(--text-sm); font-weight: 700; }

.hg-feat a.ft-system:link, .hg-feat a.ft-system:visited { padding: 1px 8px; border-radius: 999px; background: var(--color-brand-tint); font-size: var(--text-xs); font-weight: 700; color: var(--color-brand-darker); }
.hg-feat a.ft-writer:link, .hg-feat a.ft-writer:visited { font-weight: 700; color: var(--color-ink); }
.hg-feat a.ft-writer:hover { color: var(--color-brand); }

/* Years. */
.hg-feat .ft-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-6); }
.hg-feat .ft-years a { padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.hg-feat .ft-years a:link, .hg-feat .ft-years a:visited { color: var(--color-ink); }
.hg-feat .ft-years a:hover { border-color: #D4A017; color: #8A5A00; text-decoration: none; }
.hg-feat .ft-years small { font-weight: 600; color: var(--color-ink-faint); }
.hg-feat .ft-year { margin: 0 0 var(--space-6); scroll-margin-top: var(--space-4); }
.hg-feat h2.ft-year-head { display: flex; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-3); padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-border); }
.hg-feat h2.ft-year-head span { font-size: var(--text-2xl); font-weight: 800; color: #B8860B; font-variant-numeric: tabular-nums; }
.hg-feat h2.ft-year-head small { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-ink-muted); }
.hg-feat .ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.hg-feat .ft-item { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.hg-feat .ft-item:hover { border-color: #F0D9A0; box-shadow: var(--shadow-sm); }
.hg-feat .ft-cover { flex-shrink: 0; line-height: 0; }
.hg-feat .ft-cover img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--color-bg-subtle); }
.hg-feat .ft-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hg-feat a.ft-game { font-weight: 700; line-height: var(--leading-tight); overflow-wrap: anywhere; }
.hg-feat a.ft-game:link, .hg-feat a.ft-game:visited { color: var(--color-ink); }
.hg-feat a.ft-game:hover { color: var(--color-brand); text-decoration: none; }
.hg-feat .ft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); font-size: var(--text-xs); color: var(--color-ink-muted); }
.hg-feat .ft-date { color: var(--color-ink-faint); }
.hg-feat .ft-stars { flex-shrink: 0; line-height: 0; }
.hg-feat .ft-top { margin-top: var(--space-2); font-size: var(--text-xs); font-weight: 700; text-align: right; }

/* Most wins. */
.hg-feat .ft-champs { padding: var(--space-4) var(--space-6); border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-bg-subtle); }
.hg-feat h2.ft-champs-head { margin-bottom: var(--space-2); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-ink-muted); }
.hg-feat .ft-champs ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: var(--space-8); font-size: var(--text-sm); }
.hg-feat .ft-champs li { break-inside: avoid; padding: 2px 0; }
.hg-feat .ft-champs li a:link, .hg-feat .ft-champs li a:visited { font-weight: 700; color: var(--color-ink); }
.hg-feat .ft-champs li span { margin-left: 4px; color: #B8860B; font-weight: 800; }

.hg-feat .article-stars { display: inline-flex; gap: 1px; }
.hg-feat .astar { width: 14px; height: 14px; background: var(--color-border-strong);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hg-feat .astar.is-full { background: #F5A623; }
.hg-feat .astar.is-half { background: linear-gradient(90deg, #F5A623 50%, var(--color-border-strong) 50%); }
.hg-feat .ft-empty { padding: var(--space-8) var(--space-4); border: 1px dashed var(--color-border-strong); border-radius: 14px; text-align: center; color: var(--color-ink-muted); }

@media (max-width: 640px) {
    .hg-feat h1.ft-title { font-size: var(--text-2xl); }
    .hg-feat .ft-latest { flex-direction: column; padding: var(--space-4); gap: var(--space-4); }
    .hg-feat .ft-latest-cover img { width: 110px; height: 110px; }
    .hg-feat h2.ft-latest-title { font-size: var(--text-xl); }
    .hg-feat .ft-champs ol { columns: 1; }
}
