@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&display=swap');

:root {
    --bg: #08090d;
    --panel: #11131d;
    --line: #30364a;
    --text: #f7f7fb;
    --muted: #b8bed2;
    --cyan: #22d3ee;
    --lime: #c8ff4d;
    --amber: #ffbd3d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(8, 9, 13, 0.35), #08090d 520px),
        url('/img/gamesbg.jpg') top center / 100% auto no-repeat,
        var(--bg);
    color: var(--text);
    font-family: 'Chakra Petch', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 76px;
    padding: 8px clamp(16px, 4vw, 56px);
    background: rgba(8, 9, 13, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: var(--lime);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 18px;
    line-height: 1.05;
}

.logo img {
    width: 30px;
    height: 30px;
}

.navbar a:not(.logo, .icon) {
    padding: 12px 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.navbar a:not(.logo, .icon):hover {
    color: var(--text);
}

.navbar a[aria-current="page"]:not(.logo, .icon) {
    color: var(--lime);
    box-shadow: inset 0 -2px var(--lime);
}

.icon {
    display: none;
}

main {
    padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.blog-hero,
.article {
    max-width: 1040px;
    margin: auto;
    padding: 72px 0 42px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 rgba(255, 47, 125, 0.52);
}

.blog-hero p:not(.eyebrow),
.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}

.news-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.45fr) auto;
    gap: 14px;
    align-items: end;
    max-width: 1040px;
    margin: 0 auto 24px;
    padding: 18px;
    background: rgba(17, 19, 29, 0.9);
    border: 1px solid var(--line);
}

.news-tools label {
    display: grid;
    gap: 8px;
}

.news-tools label > span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-tools input,
.news-tools select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #08090d;
    color: var(--text);
    font: inherit;
}

.news-tools input:focus,
.news-tools select:focus,
.load-more:focus {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}

#postCount {
    min-width: 92px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1040px;
    margin: auto;
}

.seo-post-links {
    max-width: 1040px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(17, 19, 29, 0.78);
    border: 1px solid var(--line);
}

.seo-post-links h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.seo-post-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-post-links a {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-weight: 700;
}

.seo-post-links a:hover {
    color: var(--lime);
}

.post-card {
    display: grid;
    grid-template-rows: 190px 1fr;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
}

.post-card.lead-story {
    border-color: rgba(200, 255, 77, 0.72);
    box-shadow: 0 0 30px rgba(200, 255, 77, 0.08);
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card div {
    padding: 18px;
}

.post-card .story-label {
    color: var(--amber);
    font-size: 13px;
    font-weight: 700;
}

.post-card time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.story-label {
    text-transform: uppercase;
}

.post-card h2 {
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.1;
}

.post-card p,
.article p,
.article li {
    color: var(--muted);
    line-height: 1.55;
}

.post-card a,
.source-list a {
    color: var(--lime);
    font-weight: 700;
}

.news-empty {
    max-width: 1040px;
    margin: 24px auto;
    color: var(--muted);
    text-align: center;
}

.load-more-wrap {
    max-width: 1040px;
    margin: 26px auto 0;
    text-align: center;
}

.load-more {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--lime);
    background: transparent;
    color: var(--lime);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.load-more:hover {
    background: var(--lime);
    color: #111;
}

.article {
    display: grid;
    gap: 26px;
}

.article section {
    padding: 22px;
    background: rgba(17, 19, 29, 0.88);
    border: 1px solid var(--line);
}

.article h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 30px;
}

.source-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.source-list a {
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pie-pagina {
    background: #050609;
    border-top: 1px solid var(--line);
}

.pie-pagina .grupo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px;
    max-width: 1180px;
    margin: auto;
    padding: 32px 20px;
    text-align: center;
}

.pie-pagina img {
    width: 180px;
}

.pie-pagina p,
.pie-pagina small {
    color: var(--muted);
}

.box-s {
    width: 100%;
}

@media screen and (max-width: 860px) {
    .news-tools {
        grid-template-columns: 1fr;
    }

    #postCount {
        margin: 0;
        text-align: left;
    }

    .navbar {
        position: sticky;
        display: flex;
        min-height: 90px;
        padding: 14px 18px;
    }

    .navbar a:not(:first-child) {
        display: none;
    }

    .navbar a.icon {
        position: absolute;
        top: 16px;
        right: 18px;
        display: inline-grid;
        place-items: center;
        width: 52px;
        height: 52px;
        padding: 0;
        background: rgba(17, 19, 29, 0.92);
        border: 1px solid var(--line);
        box-sizing: border-box;
    }

    .navbar.responsive {
        display: block;
        padding-top: 18px;
    }

    .navbar.responsive a {
        display: block;
        padding: 14px 0;
        text-align: center;
    }

    .navbar.responsive .logo {
        display: flex;
        justify-content: center;
        margin: 0;
    }
}
