/* ================================================================
   FEATURED BANNER — Estilo Steam (redesign)
   ================================================================ */

/* Secção raiz */
.fb {
    width: 100%;
    background: transparent;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    user-select: none;
}

/* Wrapper limitado a 1200px */
.fb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Cabeçalho "Recomendados e em destaque" */
.fb-header {
    padding: 0 0 0.35rem;
}
.fb-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8fa0b0;
}

/* ── Container do carrossel ────────────────────────────────────── */
.fb-carousel-box {
    position: relative;
    width: 100%;
}

/* ── Banner Principal ── */
.fb-wrap,
.fb-panel,
.fb-panel-title-link,
.fb-game-name,
.fb-supporters-row,
.fb-tags,
.fb-tag,
.fb-action,
.fb-raised-stat {
    cursor: default !important;
}

.fb-wrap {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
    background: #0d1117;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.fb-panel-title-link {
    text-decoration: none;
    color: inherit;
}

.fb-panel-title-link h3 {
    text-decoration: none;
}
.fb-panel-title-link:hover .fb-game-name {
    color: #66c0f4;
    transition: color 0.2s;
}

/* Miniaturas */
.fb-shot {
    cursor: pointer !important;
    position: relative;
}
.fb-shot.active-shot {
    opacity: 0.75;
}

.fb-main-img {
    cursor: pointer !important;
}








/* ── Área dos slides ──────────────────────────────────────────── */
.fb-slides {
    flex: 1;
    position: relative;
    min-width: 0;
    height: 100%;
}

/* Cada slide ocupa exatamente o mesmo espaço */
.fb-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.fb-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: all;
}

/* ── Banner Clicável (Link para o jogo) ────────────────────────── */
.fb-slide-link,
.fb-panel-link {
    display: flex;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


/* ── ESQUERDA: Imagem principal / Vídeo ───────────────────────── */
.fb-main-img {
    flex: 0 0 58%;
    position: relative;
    overflow: hidden;
    background: #0d1117;
    height: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer !important;
}

/* Capa: visível por defeito */
.fb-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    z-index: 2;
    cursor: pointer !important;
}

.fb-main-img:hover .fb-cover-img {
    filter: brightness(1.08);
    transform: scale(1.02);
    cursor: pointer !important;
}

/* Ícone de Play sobreposto no hover */
.fb-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 5;
    color: rgba(255, 255, 255, 0.85);
    font-size: 3.5rem;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.7));
    cursor: pointer !important;
}

.fb-main-img:hover .fb-play-overlay {
    color: #66c0f4;
    transform: translate(-50%, -50%) scale(1.18);
}

.fb-main-img.video-active .fb-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Iframe: escondido por defeito, visível no hover via JS */
.fb-video-iframe,
.fb-img {
    transition: opacity 0.35s ease;
    will-change: opacity;
    cursor: pointer !important;
}

.fb-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    display: block;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    object-fit: contain;
}

/* Estado ativo (hover) — aplicado via JS */
.fb-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    background: transparent;
}

.fb-main-img.video-active .fb-video-overlay {
    display: block;
}

/* Quando o rato se move sobre o vídeo ativo (cursor visível) */
.fb-main-img.video-active:not(.video-idle),
.fb-main-img.video-active:not(.video-idle) * {
    cursor: pointer !important;
}

/* Quando o rato fica parado no vídeo ativo (cursor ocultado) */
.fb-main-img.video-active.video-idle,
.fb-main-img.video-active.video-idle * {
    cursor: none !important;
}

.fb-main-img.video-active .fb-cover-img {
    opacity: 0;
    pointer-events: none;
}

.fb-main-img.video-active .fb-video-iframe {
    opacity: 1;
    pointer-events: none !important;
    z-index: 3;
}


.fb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.25s, transform 0.25s;
}
.fb-slide-link:hover .fb-img {
    filter: brightness(1.05);
}
.fb-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c6d4df;
    color: #1b2838;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    z-index: 3;
}

/* ── DIREITA: Painel de informação ────────────────────────────── */
.fb-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 14px 12px;
    background: #16202d;
    border-left: 1px solid #1e2d3d;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

/* Nome do jogo */
.fb-game-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Número de apoiantes abaixo do nome do jogo */
.fb-supporters-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    color: #66c0f4;
}
.fb-supporters-row svg {
    color: #66c0f4;
    flex-shrink: 0;
}
.fb-supporters-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #66c0f4;
}

/* ── 4 Screenshots em grelha 2×2 ─────────────────────────────── */
.fb-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;                 /* espaçamento entre fotos */
    flex: 1;                  /* ocupa o espaço disponível */
    min-height: 0;
    margin-bottom: 8px;
}
.fb-shot {
    overflow: hidden;
    background: #0d1117;
    border-radius: 4px;       /* cantos arredondados individuais */
}
.fb-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
}

/* ── Tags cinzentas sem borda ─────────────────────────────────── */
.fb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.fb-tag {
    background: #2a3a4a;
    color: #8fa0b0;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.18rem 0.45rem;
    border-radius: 2px;
    border: none;             /* sem borda */
    cursor: default;
}

/* ── Valor Arrecadado + Botão Apoiar à direita ────────────────── */
.fb-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.fb-raised-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.fb-raised-val {
    font-size: 1rem;
    font-weight: 900;
    color: #66c0f4;
}
.fb-raised-lbl {
    font-size: 0.72rem;
    color: #8fa0b0;
}
.fb-btn-apoiar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #1b9af7 5%, #0078d4 100%);
    color: #fff;
    padding: 0.42rem 1.1rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: filter 0.2s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.fb-slide-link:hover .fb-btn-apoiar {
    filter: brightness(1.18);
    transform: translateY(-1px);
}

/* ── Setas sem fundo fora do banner (nas laterais esquerda e direita) ── */
.fb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #8fa0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, transform 0.2s;
}
.fb-arrow svg {
    width: 36px;
    height: 36px;
}
.fb-arrow:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.25);
}

.fb-arrow-left {
    left: -42px;
}

.fb-arrow-right {
    right: -42px;
}




/* ── Tracinhos indicadores ────────────────────────────────────── */

.fb-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.55rem 0 0;
}
.fb-dot {
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: #2a475e;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
    flex-shrink: 0;
}
.fb-dot.active            { background: #66c0f4; width: 24px; }
.fb-dot:hover:not(.active){ background: #4a8ab0; }

/* ── Responsivo ───────────────────────────────────────────────── */
@media (max-width: 860px) {
    .fb-wrap {
        height: 300px;
    }
    .fb-main-img { flex: 0 0 52%; }
    .fb-game-name { font-size: 1.1rem; }
    .fb-panel { padding: 12px; }
    .fb-screenshots { gap: 4px; height: 100px; }
    .fb-arrow svg { width: 28px; height: 28px; }
    .fb-header { padding-left: 1rem !important; }
    .fb-dot.active { background: transparent !important; }
    .featured-dot.active { background: transparent !important; }
}

@media (max-width: 860px) {
    .fb-arrow {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .fb-arrow {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .fb {
        display: none !important;
    }
}



.featured-banner {
    width: 100%;
    background: #1b2838;
    padding: 0;
    margin-bottom: 2.5rem;
    position: relative;
    user-select: none;
}

.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Cabeçalho da secção */
.featured-header {
    padding: 0.6rem 0 0.6rem;
}

.featured-title-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8fa0b0;
}

/* ---- Wrapper do carrossel ---- */
.featured-carousel-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #12161c;
    height: 340px;
}

/* ---- Slides (todos com o mesmo tamanho fixo) ---- */
.featured-slides {
    flex: 1;
    position: relative;
    min-width: 0;
    height: 100%;
}

.featured-slide {
    display: flex;
    position: absolute;
    inset: 0;           /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.featured-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: all;
}

/* ---- Imagem Principal ---- */
.featured-img-wrap {
    flex: 0 0 62%;
    position: relative;
    overflow: hidden;
    background: #0d1117;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c6d4df;
    color: #1b2838;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    z-index: 2;
}

/* ---- Painel de informação ---- */
.featured-info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.25rem 1.25rem 1.25rem;
    background: #16202d;
    border-left: 1px solid #2a3a4a;
    justify-content: center;
    min-width: 0;
}

.featured-game-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.3px;
}

.featured-rating {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.featured-rating-label {
    font-size: 0.78rem;
    color: #66c0f4;
    font-weight: 700;
}

.featured-rating-count {
    font-size: 0.7rem;
    color: #8fa0b0;
}

.featured-desc {
    font-size: 0.82rem;
    color: #c7d5e0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.1rem;
}

.featured-tag {
    background: #2a475e66;
    color: #66c0f4;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #2a475e;
    cursor: default;
    transition: background 0.15s, color 0.15s;
}

.featured-tag:hover {
    background: #2a475e;
    color: #9ac9e8;
}

.featured-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-price.free {
    font-size: 1rem;
    font-weight: 700;
    color: #a4d007;
}

.featured-price.paid {
    font-size: 1rem;
    font-weight: 700;
    color: #c7d5e0;
}

.featured-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to bottom, #75b126 5%, #588a1b 100%);
    color: #fff;
    padding: 0.55rem 1.2rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: filter 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.featured-play-btn:hover {
    filter: brightness(1.18);
    transform: translateY(-1px);
}

/* ---- Setas de navegação ---- */
.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 72px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #c7d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 0;
}

.featured-arrow svg {
    width: 18px;
    height: 18px;
}

.featured-arrow:hover {
    background: rgba(0,0,0,0.88);
    color: #fff;
}

/* Seta esquerda: na borda esquerda do carousel inteiro */
.featured-arrow-left  { left: 0; }

/* Seta direita: na borda direita do carousel inteiro (sobre o peek) */
.featured-arrow-right { right: 0; }

/* ---- Peek lateral (miniaturas visíveis à direita) ---- */
.featured-peek-right {
    display: flex;
    flex-direction: column;
    width: 130px;
    height: 100%;
    flex-shrink: 0;
    background: #0d1117;
    border-left: 1px solid #2a3a4a33;
    overflow: hidden;
}

.featured-peek-item {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid #2a3a4a33;
}

.featured-peek-item:last-child {
    border-bottom: none;
}

.featured-peek-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
    transition: filter 0.25s, transform 0.25s;
}

.featured-peek-item:hover img {
    filter: brightness(0.75);
    transform: scale(1.04);
}

.featured-peek-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,17,23,0.6) 0%, transparent 100%);
    pointer-events: none;
}

/* ---- Tracinhos indicadores (estilo Steam) ---- */
.featured-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.6rem 0 0;
}

.featured-dot {
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: #2a475e;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
    flex-shrink: 0;
}

.featured-dot.active {
    background: #66c0f4;
    width: 24px;
}

.featured-dot:hover:not(.active) {
    background: #4a8ab0;
}

/* ---- Responsivo ---- */
@media (max-width: 900px) {
    .featured-peek-right {
        display: none;
    }
    .featured-img-wrap {
        flex: 0 0 55%;
    }
}

@media (max-width: 640px) {
    .featured-slide {
        flex-direction: column;
    }
    .featured-img-wrap {
        flex: 0 0 180px;
        min-height: 180px;
    }
    .featured-info-panel {
        padding: 1rem;
    }
    .featured-game-title {
        font-size: 1.1rem;
    }
    .featured-arrow {
        height: 40px;
        width: 28px;
    }
}

