/* =============================================
   GAME MANIA — Blog (Universo Game Mania)
   ============================================= */

:root {
    --color-header: #231f20;
    --color-black: #111111;
    --color-accent: #f3ec1a;
    --color-accent-hover: #d9d300;
    --color-accent-text: #231f20;
    --color-bg: #f2f4f7;
    --color-card: #ffffff;
    --color-text: #231f20;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Jost", "Futura", "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-width: 320px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background-color: var(--color-header);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 7px 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.top-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.topbar-mobile {
    display: none;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background-color: var(--color-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.logo-game {
    color: var(--color-accent);
}

.logo-mania {
    color: #ffffff;
}

.logo-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Search */
.header-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}

.search-box {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--color-card);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    padding: 14px;
    display: none;
    z-index: 1100;
}

.search-box.active {
    display: block;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    outline: none;
}

.search-results {
    margin-top: 10px;
    max-height: 360px;
    overflow-y: auto;
}

.search-results .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 400;
}

.search-result-item:hover {
    background: var(--color-bg);
}

.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 3px;
    line-height: 1.3;
}

.search-result-info span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.search-empty {
    padding: 16px 8px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

.btn-loja {
    background: var(--color-accent);
    color: var(--color-accent-text) !important;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 700 !important;
}

.btn-loja:hover {
    background: var(--color-accent-hover);
}

.btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 700 !important;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
}

.post-body .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
}

/* Category Nav */
.category-nav {
    background-color: #1a1718;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-search-slot {
    display: none;
}

.nav-list li a {
    display: block;
    padding: 12px 16px;
    color: #d9d9d9;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* =============================================
   HERO / FEATURED POST
   ============================================= */
.blog-hero {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    min-height: 420px;
    background: var(--color-black);
}

.featured-post img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.85;
}

.featured-post-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 10%, rgba(17,17,17,0.35) 60%, rgba(17,17,17,0) 100%);
}

.post-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-post-content h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    max-width: 760px;
}

.featured-post-content p {
    color: #e6e6e6;
    font-size: 1rem;
    max-width: 640px;
    margin: 0 0 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #bbb;
    font-size: 0.85rem;
}

.post-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #888;
    display: inline-block;
}

/* =============================================
   MAIN LAYOUT — POSTS + SIDEBAR
   ============================================= */
.blog-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent);
}

.see-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--color-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.post-card-image .post-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    margin-bottom: 0;
}

.post-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.post-card-body p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
}

.post-card-body .post-meta {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.post-card-body .post-meta .dot {
    background: #ccc;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--color-card);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
}

.pagination a.active {
    background: var(--color-header);
    color: var(--color-accent);
    border-color: var(--color-header);
}

.pagination a.pagination-next {
    width: auto;
    padding: 0 16px;
    gap: 8px;
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-list-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
}

.post-list-item:first-child {
    padding-top: 0;
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-list-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.post-list-item-body {
    flex: 1;
    min-width: 0;
}

.post-list-item-body .post-tag {
    margin-bottom: 6px;
}

.post-list-item-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.post-list-item-body .post-meta {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .post-list-item img {
        width: 76px;
        height: 76px;
    }
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
    background: var(--color-card);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.popular-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.popular-post:last-child {
    margin-bottom: 0;
}

.popular-post img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-post-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
}

.popular-post-info span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a span.count {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.sidebar-widget.newsletter {
    background: var(--color-header);
    color: #fff;
}

.sidebar-widget.newsletter h3 {
    color: #fff;
}

.sidebar-widget.newsletter p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0 0 16px;
}

.sidebar-widget.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-widget.newsletter input {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.sidebar-widget.newsletter button {
    background: var(--color-accent);
    color: var(--color-accent-text);
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-widget.newsletter button:hover {
    background: var(--color-accent-hover);
}

.social-follow {
    display: flex;
    gap: 10px;
}

.social-follow a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 1rem;
}

.social-follow a:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

/* =============================================
   SINGLE POST PAGE
   ============================================= */
.post-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.post-breadcrumb {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.post-breadcrumb a {
    color: var(--color-text-muted);
    font-weight: 600;
}

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

.post-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
}

.post-page .post-meta {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 28px;
}

.post-page .post-meta .dot {
    background: #ccc;
}

.post-hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 32px;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin: 0 0 22px;
}

.post-body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 36px 0 16px;
}

.post-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 28px 0 14px;
}

.post-body img {
    border-radius: 10px;
    margin: 24px 0;
}

.post-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
}

.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-two-col {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: center;
    margin: 24px 0;
}

.post-two-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin: 0;
}

.post-two-col .post-two-col-text p {
    margin: 0 0 14px;
}

.post-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.post-img-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0;
}

.post-body blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 28px 0;
    padding: 4px 24px;
    font-style: italic;
    color: var(--color-text-muted);
}

.post-body ul,
.post-body ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}

.post-body table td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
}

.post-body table tr:first-child td {
    background: var(--color-header);
    color: #fff;
}

.post-body table tr:nth-child(even):not(:first-child) td {
    background: var(--color-bg);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0;
}

.post-tags a {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.post-tags a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.post-share span {
    font-weight: 700;
    font-size: 0.875rem;
}

.post-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-share a:hover {
    background: var(--color-accent);
}

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-header);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    max-width: min(360px, 90vw);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.author-box {
    display: flex;
    gap: 16px;
    background: var(--color-card);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.author-box img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.author-box p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.related-posts h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: var(--color-black);
    color: #ccc;
    padding: 50px 24px 24px;
    margin-top: 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 26px;
    width: auto;
    display: block;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #999;
    margin: 0 0 20px;
    max-width: 320px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-icons a:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    font-size: 0.8125rem;
    color: #777;
    text-align: center;
}

.footer-bottom a {
    color: #999;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .blog-main {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .topbar-desktop {
        display: none;
    }

    .topbar-mobile {
        display: inline;
    }

    .logo-tag {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .header-main {
        justify-content: center;
    }

    .category-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-list {
        margin: 0;
    }

    .nav-search-slot {
        display: flex;
        align-items: center;
        padding-right: 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .featured-post img {
        height: 280px;
    }

    .featured-post-content {
        padding: 24px;
    }

    .post-hero-image {
        height: 240px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-img-grid {
        grid-template-columns: 1fr;
    }

    .post-img-grid img {
        height: 200px;
    }

    .post-two-col {
        grid-template-columns: 1fr;
    }

    .post-two-col img {
        height: 260px;
    }
}
