/*
Theme Name: GamePress
Theme URI: https://game.ludwiczak.dev
Author: Ludwiczak.dev
Description: Lightweight gaming blog theme for game.ludwiczak.dev.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: gamepress
*/

:root {
    --bg: #101117;
    --panel: #181b24;
    --panel-soft: #202431;
    --text: #f5f7fb;
    --muted: #aab2c5;
    --brand: #3ddc97;
    --accent: #ffcc4d;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

a {
    color: inherit;
}

.site-header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(16, 17, 23, 0.92);
    backdrop-filter: blur(14px);
}

.site-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
}

.nav {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 72px;
    justify-content: space-between;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 8px;
    color: #0d1117;
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.menu a:hover {
    color: var(--text);
}

.hero {
    border-bottom: 1px solid var(--line);
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    background:
        linear-gradient(90deg, rgba(16, 17, 23, 0.96), rgba(16, 17, 23, 0.66), rgba(16, 17, 23, 0.94)),
        url("assets/hero.png") center/cover no-repeat;
    content: "";
    inset: 0;
    position: absolute;
}

.hero-inner {
    align-items: center;
    display: grid;
    min-height: 520px;
    position: relative;
}

.eyebrow {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.96;
    margin: 0;
    max-width: 780px;
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 650px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    align-items: center;
    background: var(--brand);
    border-radius: 8px;
    color: #09110e;
    display: inline-flex;
    font-weight: 900;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none;
}

.button-secondary {
    background: var(--panel-soft);
    color: var(--text);
}

.content-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 330px;
    padding: 44px 0;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card,
.sidebar-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.post-card {
    padding: 24px;
}

.post-card h2,
.page-content h1,
.page-content h2 {
    margin-top: 0;
}

.post-card a,
.page-content a {
    color: var(--brand);
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.sidebar {
    display: grid;
    gap: 18px;
}

.sidebar-panel {
    padding: 20px;
}

.sidebar-panel h2 {
    font-size: 1rem;
    margin: 0 0 12px;
}

.page-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    line-height: 1.7;
    margin: 44px 0;
    padding: 32px;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 28px 0;
}

@media (max-width: 820px) {
    .nav,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0;
    }

    .hero,
    .hero-inner {
        min-height: 480px;
    }

    .site-shell {
        padding: 0 18px;
    }
}
