/* Shared styles for every property under the group (gta6 today, more later).
 * --accent / --accent-alt arrive from the sites table, so this file never
 * mentions a specific colour. */

.site-hero {
    position: relative;
    padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.site-hero-glow {
    position: absolute;
    inset: -50% 0 auto -10%;
    height: 620px;
    background: radial-gradient(ellipse at 30% 60%,
        color-mix(in srgb, var(--accent) 26%, transparent) 0%,
        color-mix(in srgb, var(--accent-alt) 12%, transparent) 42%,
        transparent 70%);
    pointer-events: none;
}
.site-hero .container { position: relative; }

.site-hero-title {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 800;
    margin: 0 0 .15em;
    background: linear-gradient(100deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.site-hero-tagline { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 26px; }

.site-hero-features { display: flex; flex-wrap: wrap; gap: 10px; }

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .55em 1.1em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: .9rem;
    font-weight: 600;
    transition: border-color .2s, transform .2s var(--ease);
}
.feature-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-pill-icon { font-size: 1.05em; }

/* ── Article cards ───────────────────────────────────────────────── */

.featured { padding-top: 40px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lift);
}

.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-elev); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }

.card-media-empty {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%,
            color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
        radial-gradient(circle at 70% 70%,
            color-mix(in srgb, var(--accent-alt) 24%, transparent), transparent 60%),
        var(--bg-elev);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: .28em .8em;
    border-radius: var(--radius-pill);
    background: rgba(10, 11, 15, .78);
    backdrop-filter: blur(6px);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.08rem; margin-bottom: .4em; }
.card-summary {
    color: var(--text-dim);
    font-size: .9rem;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: .78rem;
    color: var(--text-faint);
}
.card-lang {
    padding: .1em .5em;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .68rem;
}

/* Lead story: wide on desktop, an ordinary card on mobile. */
.card-large { flex-direction: row; }
.card-large .card-media { flex: 0 0 58%; aspect-ratio: auto; }
.card-large .card-body { justify-content: center; padding: 32px 36px; }
.card-large .card-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.card-large .card-summary { font-size: 1rem; -webkit-line-clamp: 4; }

@media (max-width: 800px) {
    .card-large { flex-direction: column; }
    .card-large .card-media { flex: none; aspect-ratio: 16 / 9; }
    .card-large .card-body { padding: 20px; }
}

/* ── Pager ───────────────────────────────────────────────────────── */

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 48px 0;
}
.pager-pos { color: var(--text-faint); font-size: .88rem; }

/* ── CTA band ────────────────────────────────────────────────────── */

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 72px 0;
    padding: 36px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg,
            color-mix(in srgb, var(--accent) 14%, transparent),
            color-mix(in srgb, var(--accent-alt) 10%, transparent)),
        var(--bg-card);
}
.cta-band h2 { font-size: 1.4rem; margin-bottom: .25em; }
.cta-band p { color: var(--text-dim); margin: 0; font-size: .95rem; }

/* ── Video (YouTube facade) ──────────────────────────────────────── */
/* Markup and rationale in templates/site/_video.html. The facade and the
   real iframe share .yt-frame/.yt-embed sizing so the swap on click does not
   move anything on the page. */

.yt {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.yt-frame, .yt-embed {
    display: block;
    width: 100%;
    aspect-ratio: var(--yt-ratio, 16 / 9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    overflow: hidden;
}
.yt-frame {
    position: relative;
    padding: 0;
    cursor: pointer;
    transition: border-color .2s, transform .2s var(--ease);
}
.yt-frame:hover { border-color: var(--accent); transform: translateY(-2px); }
.yt-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.yt-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.yt-play-bg { fill: #12100f; fill-opacity: .78; transition: fill .2s; }
.yt-frame:hover .yt-play-bg { fill: #f00; fill-opacity: 1; }

/* Title plate sits on a gradient scrim rather than straight on the poster —
   a trailer frame can be any colour under there, including white. */
.yt-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 16px 12px;
    background: linear-gradient(to top, rgba(6, 8, 12, .88), transparent);
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
    pointer-events: none;
}

.yt-caption { color: var(--text-dim); font-size: .86rem; margin: 0; }

.yt-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
