@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --bg-color: #f7f7f7;
    --bg-card: #ffffff;
    --text-main: #222222;
    --text-muted: #555555;
    --accent-color: #c62828; /* Globo Cultura Pop red/pinkish */
    --border-color: #e0e0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 4px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

/* Header Navbar */
.gs-header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gs-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: center; /* Logo centralizada */
    align-items: center;
    position: relative;
}

/* Menu Hamburguer */
.gs-header__menu-btn {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Identificador de Categoria Centralizado logo abaixo */
.gs-header__category-tag {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--accent-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    letter-spacing: 1px;
}

/* Logo */
.gs-header__logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.gs-header__logo img {
    max-height: 45px;
}

/* Offcanvas Menu */
.gs-nav-offcanvas {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.gs-nav-offcanvas.open {
    left: 0;
}

.gs-nav-offcanvas__close {
    background: none;
    border: none;
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--text-main);
}

.gs-nav-offcanvas a {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Overlay do Menu */
.gs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}
.gs-overlay.open {
    display: block;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Grid de Posts (Home) */
.gs-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Destaque Principal (Hero) - Light Mode */
.gs-hero {
    grid-column: span 12;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
    .gs-hero {
        grid-column: span 8;
        margin-bottom: 0;
    }
}

.gs-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.gs-hero__content {
    padding: 1.5rem;
}

.gs-hero__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}
.gs-hero:hover .gs-hero__title {
    color: var(--accent-color);
}

.gs-hero__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Coluna Lateral da Home */
.gs-sidebar {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .gs-sidebar {
        grid-column: span 4;
    }
}

/* Cards Menores */
.gs-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gs-card__img-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gs-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gs-card__content {
    padding: 1rem;
}

.gs-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.gs-card:hover .gs-card__title {
    color: var(--accent-color);
}

.gs-card__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Carrossel Central Horizontal (Nova Inclusão) */
.gs-carousel-wrapper {
    grid-column: span 12;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.gs-carousel-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 6px solid var(--accent-color);
    padding-left: 1rem;
}

.gs-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
}

.gs-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gs-carousel .gs-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .gs-carousel .gs-card {
        flex: 0 0 45%;
    }
}
@media (min-width: 992px) {
    .gs-carousel .gs-card {
        flex: 0 0 30%;
    }
}

/* Post Interno */
.post-header {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 3.5rem; /* Fonte COLOSSAL simulando Globoface */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.post-content h2, .post-content h3 {
    font-family: var(--font-heading);
    margin: 2rem 0 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* Footer */
.gs-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 4rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.gs-footer__social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.gs-footer__menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gs-footer__menu a {
    font-weight: 700;
}

.gs-footer__copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}
