/* =============================================================================
   GENBYTE PRESS — HOME & PORTAL DE NOTÍCIAS CSS
   Layout F (News Hero Grid, Bloco Misto, News List) + Seções Modulares
   ============================================================================= */

/* --------------------------------------------------------------------------
   1. TICKER DE NOTÍCIAS (PLANTÃO / AO VIVO)
   -------------------------------------------------------------------------- */
.gbp-news-ticker,
.gbp-ticker-wrapper {
    background-color: var(--gbp-color-surface, #f8fafc);
    border-bottom: 1px solid var(--gbp-color-border, rgba(15, 23, 42, 0.08));
    padding: 9px 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .gbp-news-ticker,
[data-theme="dark"] .gbp-ticker-wrapper {
    background-color: #0c1220;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gbp-ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gbp-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.gbp-ticker-pulse {
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: gbpTickerPulse 1.6s infinite ease-in-out;
}

@keyframes gbpTickerPulse {
    0% { transform: scale(0.8); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.3); opacity: 0.3; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.8); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.gbp-ticker-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

.gbp-ticker-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gbp-ticker-item a {
    color: var(--gbp-color-text, #0f172a);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--gbp-transition);
}

.gbp-ticker-item a:hover {
    color: var(--gbp-color-primary, #0066cc);
}

[data-theme="dark"] .gbp-ticker-item a {
    color: #e2e8f0;
}

[data-theme="dark"] .gbp-ticker-item a:hover {
    color: #38bdf8;
}

/* --------------------------------------------------------------------------
   2. NEWS HERO GRID (TOPO DO PORTAL — 4 NOTÍCIAS)
   -------------------------------------------------------------------------- */
.gbp-news-hero-section,
.fwx-news-hero-section {
    margin: 30px 0 45px 0;
}

.gbp-news-hero-grid,
.fwx-news-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 18px;
}

@media (max-width: 992px) {
    .gbp-news-hero-grid,
    .fwx-news-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 600px) {
    .gbp-news-hero-grid,
    .fwx-news-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Card 1: Destaque Principal (Ocupa 2 cols x 2 rows) */
.gbp-news-hero-main,
.fwx-news-hero-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Card 2: Destaque Médio (Ocupa 2 cols x 1 row) */
.gbp-news-hero-medium,
.fwx-news-hero-medium {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

/* Cards 3 e 4: Pequenos (Ocupam 1 col x 1 row cada) */
.gbp-news-hero-small:nth-child(3),
.fwx-news-hero-small:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.gbp-news-hero-small:nth-child(4),
.fwx-news-hero-small:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

@media (max-width: 992px) {
    .gbp-news-hero-main, .fwx-news-hero-main,
    .gbp-news-hero-medium, .fwx-news-hero-medium,
    .gbp-news-hero-small, .fwx-news-hero-small {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 250px;
    }
    
    .gbp-news-hero-main, .fwx-news-hero-main {
        grid-column: 1 / -1 !important;
        min-height: 350px;
    }
}

/* Estilo do Card em Overlay (News Hero) */
.gbp-news-hero-grid .gbp-post-card,
.gbp-news-hero-grid .gbp-post-item,
.fwx-news-hero-grid .fwx-post-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    margin: 0;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gbp-news-hero-grid .gbp-post-card:hover,
.gbp-news-hero-grid .gbp-post-item:hover,
.fwx-news-hero-grid .fwx-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.gbp-news-hero-grid .gbp-post-card-thumb,
.gbp-news-hero-grid .gbp-post-thumb,
.fwx-news-hero-grid .fwx-post-thumb {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.gbp-news-hero-grid .gbp-post-card-thumb a,
.gbp-news-hero-grid .gbp-news-hero-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gbp-news-hero-grid .gbp-post-card-thumb img,
.gbp-news-hero-grid .gbp-post-thumb img,
.fwx-news-hero-grid .fwx-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gbp-news-hero-grid .gbp-post-card:hover img,
.gbp-news-hero-grid .gbp-post-item:hover img,
.fwx-news-hero-grid .fwx-post-item:hover img {
    transform: scale(1.06);
}

.gbp-news-overlay,
.fwx-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 11, 20, 0.96) 0%, rgba(7, 11, 20, 0.65) 50%, rgba(7, 11, 20, 0.15) 75%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}

.gbp-news-overlay a,
.fwx-news-overlay a {
    pointer-events: auto;
}

.gbp-news-badge-wrap {
    margin-bottom: 10px;
}

.gbp-news-badge-wrap .gbp-cat-label,
.gbp-news-badge-wrap .fwx-cat-label,
.gbp-news-badge-wrap .gbp-badge {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gbp-news-overlay .entry-title,
.fwx-news-overlay .entry-title {
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.gbp-news-hero-main .entry-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.gbp-news-hero-medium .entry-title { font-size: 1.25rem; }
.gbp-news-hero-small .entry-title { font-size: 1rem; line-height: 1.3; }

.gbp-news-overlay .entry-title a,
.fwx-news-overlay .entry-title a {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity var(--gbp-transition);
}

.gbp-news-overlay .entry-title a:hover,
.fwx-news-overlay .entry-title a:hover {
    opacity: 0.85;
}

.gbp-news-hero-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. BLOCO MISTO (POST 5 DESTAQUE + POSTS 6-9 LISTA LATERAL)
   -------------------------------------------------------------------------- */
.gbp-news-mixed-block,
.fwx-news-mixed-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    margin: 35px 0;
    width: 100%;
}

@media (max-width: 860px) {
    .gbp-news-mixed-block,
    .fwx-news-mixed-block {
        grid-template-columns: 1fr;
    }
}

.gbp-news-block-main,
.fwx-news-block-main {
    background: var(--gbp-color-surface);
    border: 1px solid var(--gbp-color-border);
    border-radius: var(--gbp-rad-12);
    overflow: hidden;
}

.gbp-news-block-side-list,
.fwx-news-block-side-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gbp-news-block-side-item,
.fwx-news-block-side-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gbp-color-border);
}

.gbp-news-block-side-item:last-child,
.fwx-news-block-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gbp-news-block-side-item .gbp-post-thumb,
.fwx-news-block-side-item .fwx-post-thumb {
    border-radius: var(--gbp-rad-8);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.gbp-news-block-side-item .entry-title,
.fwx-news-block-side-item .entry-title {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   4. LISTA DE NOTÍCIAS (NEWS LIST — POSTS 10+)
   -------------------------------------------------------------------------- */
.gbp-news-list-item,
.fwx-news-list-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
    background: var(--gbp-color-surface);
    border: 1px solid var(--gbp-color-border);
    border-radius: var(--gbp-rad-12);
    padding: 16px;
    transition: var(--gbp-transition);
}

@media (max-width: 640px) {
    .gbp-news-list-item,
    .fwx-news-list-item {
        grid-template-columns: 1fr;
    }
}

.gbp-news-list-item:hover,
.fwx-news-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gbp-news-list-item .gbp-post-thumb,
.fwx-news-list-item .fwx-post-thumb {
    border-radius: var(--gbp-rad-8);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

/* =============================================================================
   5. LANDING PAGE MODULAR (FAST WEBX ENGINE & HERO PRESETS)
   ============================================================================= */
.gbp-home-lp,
.fwx-home-lp {
    line-height: 1.6;
}

.gbp-lp-hero,
.fwx-lp-hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: #fafafa;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

[data-theme='dark'] .gbp-lp-hero,
[data-theme='dark'] .fwx-lp-hero {
    background: #111111;
    color: #fafafa;
}

.gbp-lp-hero-inner,
.fwx-lp-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.gbp-lp-hero-content,
.fwx-lp-hero-content {
    flex: 1.2;
}

.gbp-lp-hero-title,
.fwx-lp-hero-title {
    font-size: clamp(2.0rem, 4vw, 3.7rem);
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -1px;
    font-weight: 800;
}

.gbp-lp-hero-desc,
.fwx-lp-hero-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.gbp-lp-hero-media,
.fwx-lp-hero-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.gbp-hero-img-wrapper,
.fwx-hero-img-wrapper {
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-radius: var(--gbp-rad-24, 24px);
    overflow: hidden;
}

.gbp-hero-img-wrapper img,
.fwx-hero-img-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: inherit;
}

.gbp-btn-hero,
.fwx-btn-hero,
.gbp-btn-lp,
.fwx-btn-lp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--gbp-transition);
    cursor: pointer;
    background: var(--gbp-color-primary, #0066cc);
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.gbp-btn-hero:hover,
.fwx-btn-hero:hover,
.gbp-btn-lp:hover,
.fwx-btn-lp:hover {
    background: var(--gbp-color-secondary, #10b981) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Indicador de Rolagem Animado (Mouse Indicator) */
.gbp-scroll-indicator,
.fwx-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.gbp-mouse,
.fwx-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    opacity: 0.5;
    border-radius: 24px;
    position: relative;
}

.gbp-wheel,
.fwx-wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: gbpScrollWheel 2s infinite;
}

@keyframes gbpScrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Presets do Hero */
/* 1. EDITORIAL (Revista: Imagem à Esquerda no Desktop, Borda Verde Inferior, Texto em Itálico) */
@media (min-width: 992px) {
    .gbp-home-type-editorial .gbp-lp-hero,
    .fwx-home-type-editorial .fwx-lp-hero {
        border-bottom: 8px solid var(--gbp-color-secondary, #10b981);
    }
    .gbp-home-type-editorial .gbp-lp-hero-inner,
    .fwx-home-type-editorial .fwx-lp-hero-inner {
        flex-direction: row-reverse !important;
        text-align: left;
    }
    .gbp-home-type-editorial .gbp-lp-hero-content,
    .fwx-home-type-editorial .fwx-lp-hero-content {
        flex: 1;
        padding-right: 40px;
    }
    .gbp-home-type-editorial .gbp-lp-hero-desc,
    .fwx-home-type-editorial .fwx-lp-hero-desc {
        max-width: 550px;
        font-style: italic;
        border-left: 3px solid rgba(255, 255, 255, 0.4);
        padding-left: 20px;
    }
}
.gbp-home-type-editorial .gbp-lp-hero-title,
.fwx-home-type-editorial .fwx-lp-hero-title {
    font-weight: 900;
    letter-spacing: -2px;
}

/* 2. AUTOR (Impacto Pessoal: Centralizado e Empilhado) */
.gbp-home-type-autor .gbp-lp-hero,
.fwx-home-type-autor .fwx-lp-hero {
    text-align: center !important;
}
.gbp-home-type-autor .gbp-lp-hero-inner,
.fwx-home-type-autor .fwx-lp-hero-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}
.gbp-home-type-autor .gbp-lp-hero-content,
.gbp-home-type-autor .gbp-lp-hero-media,
.fwx-home-type-autor .fwx-lp-hero-content,
.fwx-home-type-autor .fwx-lp-hero-media {
    flex: none !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
}
.gbp-home-type-autor .gbp-lp-hero-desc,
.fwx-home-type-autor .fwx-lp-hero-desc {
    margin: 0 auto 35px auto !important;
}

/* 3. CORPORATIVO (Clássico Lado a Lado: Texto à Esquerda, Imagem à Direita) */
@media (min-width: 992px) {
    .gbp-home-type-corporativo .gbp-lp-hero-inner,
    .fwx-home-type-corporativo .fwx-lp-hero-inner {
        flex-direction: row !important;
        text-align: left !important;
    }
}

/* Seções Gerais da LP */
.gbp-lp-section,
.fwx-lp-section {
    padding: 80px 0;
}

/* Botão CTA do Feed de Artigos (Ver Todos os Artigos) */
.gbp-lp-blog-actions,
.fwx-lp-blog-actions {
    text-align: center;
    margin-top: 45px;
}

.gbp-lp-blog-cta,
.fwx-lp-loja-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gbp-color-primary, #0066cc);
    color: #ffffff !important;
    padding: 13px 30px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.25);
}

.gbp-lp-blog-cta:hover,
.fwx-lp-loja-btn:hover {
    background: var(--gbp-color-primary-hover, #0052a3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

/* v1.2.2 — Selo de categoria no mosaico: etiqueta compacta (não barra de largura total) */
.gbp-news-badge-wrap {
    display: block;
    margin-bottom: 8px;
}

.gbp-news-badge-wrap .gbp-badge,
.gbp-news-badge-wrap .gbp-badge-category {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 3px 8px;
    font-size: 0.65rem;
    line-height: 1.3;
    border-radius: 4px;
}

/* v1.2.2 — Mosaico responsivo: posições reajustadas (evita coluna fantasma e card cortado no celular) */
@media (max-width: 992px) {
    .gbp-news-hero-grid .gbp-news-hero-main,
    .gbp-news-hero-grid .gbp-news-hero-medium {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .gbp-news-hero-grid .gbp-news-hero-small {
        grid-column: auto;
        grid-row: auto;
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .gbp-news-hero-grid .gbp-news-hero-small {
        grid-column: 1 / -1;
    }

    .gbp-news-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gbp-news-hero-grid > *,
.fwx-news-hero-grid > * {
    min-width: 0;
}

.gbp-news-hero-grid img {
    max-width: 100%;
}

@media (max-width: 992px) {
    /* A proporção 3:2 do cards.css + altura mínima forçava largura maior que a tela */
    .gbp-news-hero-grid .gbp-news-hero-main,
    .gbp-news-hero-grid .gbp-news-hero-medium,
    .gbp-news-hero-grid .gbp-news-hero-small {
        aspect-ratio: auto;
        width: 100%;
    }
}
