/* ============================================
   HERO SECTION
   ============================================ */
.homepage-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--imba-accent);
    top: -100px;
    right: -100px;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #0066FF;
    bottom: -80px;
    left: -80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.text-imba {
    color: var(--imba-accent) !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

.hero-search {
    max-width: 520px;
    position: relative;
    z-index: 10;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hero-stat {
    padding: 8px 24px;
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--imba-accent);
    display: block;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: center;
    height: 50px;
}

/* ============================================
   GAME TABS
   ============================================ */
.game-tabs {
    background: var(--bs-card-bg, #1e1e2d);
    border-radius: 12px;
    padding: 12px 16px;
}

.game-tab-btn {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.game-tab-btn:hover {
    border-color: rgba(var(--imba-accent-rgb), 0.3);
    background: rgba(var(--imba-accent-rgb), 0.05);
}

.game-tab-btn.active {
    border-color: var(--imba-accent);
    background: rgba(var(--imba-accent-rgb), 0.1);
}

.game-tab-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ============================================
   CARDS (News, Games, Events)
   ============================================ */
.homepage-card-link {
    text-decoration: none;
    display: block;
}

.homepage-card {
    background: var(--bs-card-bg, #1e1e2d);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--bs-border-color, rgba(255,255,255,0.08));
}

.homepage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--imba-accent-rgb), 0.15);
}

.homepage-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.homepage-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.homepage-card:hover .homepage-card-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--imba-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.homepage-card-body {
    padding: 16px;
}

.homepage-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bs-body-color, #e4e6ef);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.homepage-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
}

.homepage-card-author {
    color: var(--imba-accent);
    font-weight: 600;
}

.homepage-card-author a {
    color: inherit;
    text-decoration: none;
}

.homepage-card-date {
    color: var(--bs-text-muted, #6c6c80);
}

/* ============================================
   SIDEBAR CARDS
   ============================================ */
.homepage-sidebar-card {
    background: var(--bs-card-bg, #1e1e2d);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, rgba(255,255,255,0.08));
}

.sidebar-card-header {
    padding: 16px 20px 0;
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.section-link {
    font-size: 0.8rem;
    color: var(--imba-accent);
    text-decoration: none;
    font-weight: 600;
}

.section-link:hover {
    color: var(--imba-accent-dark);
}

.sidebar-card-body {
    padding: 12px 20px 16px;
}

/* ============================================
   TRENDING
   ============================================ */
.trending-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--bs-border-color, rgba(255,255,255,0.06));
}

.trending-item:last-child {
    border-bottom: 0;
}

.trending-item:hover {
    opacity: 0.85;
}

.trending-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(var(--imba-accent-rgb), 0.12);
    color: var(--imba-accent);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--bs-body-color, #e4e6ef);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-date {
    font-size: 0.72rem;
    color: var(--bs-text-muted, #6c6c80);
}

/* ============================================
   MEDIA
   ============================================ */
.media-tabs .nav-link {
    font-size: 0.8rem;
    padding: 6px 12px;
    color: var(--bs-body-color, #e4e6ef);
}

.media-tabs .nav-link.active {
    color: var(--imba-accent);
}

.media-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bs-border-color, rgba(255,255,255,0.06));
}

.media-item:last-child {
    border-bottom: 0;
}

.media-thumb {
    position: relative;
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-live-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ff0000;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 1;
}

.media-video-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.media-info {
    flex: 1;
    min-width: 0;
}

.media-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--bs-body-color, #e4e6ef);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-meta {
    font-size: 0.72rem;
    color: var(--bs-text-muted, #6c6c80);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.media-grid-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.media-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.media-grid-item:hover img {
    transform: scale(1.08);
}

/* ============================================
   SEARCH DROPDOWN
   ============================================ */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bs-dropdown-bg, #1e1e2d);
    border: 1px solid var(--bs-border-color, rgba(255,255,255,0.1));
    border-radius: 12px;
    margin-top: 8px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hero-search {
    position: relative;
}

/* O dropdown da pesquisa passa para o <body> quando abre: o hero pode cortar os brilhos (antes saíam para fora do ecrã). */
.homepage-hero {
    overflow: hidden !important;
}

.search-category h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-text-muted, #6c6c80);
    margin: 8px 0 6px;
    padding: 0 4px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--bs-body-color, #e4e6ef);
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.search-item:hover {
    background: rgba(var(--imba-accent-rgb), 0.08);
}

.search-item-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--imba-accent);
}

.search-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--bs-text-muted, #6c6c80);
    font-size: 0.85rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.reveal-scale {
    transform: scale(0.95) translateY(24px);
}

.reveal.reveal-scale.revealed {
    transform: scale(1) translateY(0);
}

.reveal.reveal-left {
    transform: translateX(30px);
}

.reveal.reveal-left.revealed {
    transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 10px;
    width: 40%;
}

.skeleton-card {
    background: var(--bs-card-bg, #1e1e2d);
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-trending {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.skeleton-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ============================================
   GAME CARD VARIANT (v1-game-card)
   ============================================ */
.v1-game-card.homepage-card .homepage-card-body {
    padding-bottom: 8px;
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */
[data-bs-theme="light"] .homepage-hero {
    background: linear-gradient(135deg, #e8e8f0 0%, #d4d4de 50%, #c0c0d0 100%);
}

[data-bs-theme="light"] .hero-overlay {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.08) 100%);
}

[data-bs-theme="light"] .hero-title {
    color: #1a1a2e;
    text-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .hero-subtitle {
    color: rgba(0,0,0,0.55);
}

[data-bs-theme="light"] .hero-stat-label {
    color: rgba(0,0,0,0.5);
}

[data-bs-theme="light"] .hero-stat-divider {
    background: rgba(0,0,0,0.12);
}

[data-bs-theme="light"] .skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 100%);
    background-size: 200% 100%;
}

/* ============================================
   CARDS, GAME TABS & SIDEBAR — LIGHT MODE
   ============================================ */
[data-bs-theme="light"] .game-tabs {
    background: #f8f8fc;
}

[data-bs-theme="light"] .homepage-sidebar-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .sidebar-card-title {
    color: #1a1a2e;
}

[data-bs-theme="light"] .homepage-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .homepage-card-title,
[data-bs-theme="light"] .trending-title,
[data-bs-theme="light"] .media-title {
    color: #1a1a2e;
}

[data-bs-theme="light"] .media-tabs .nav-link {
    color: #555;
}



[data-bs-theme="light"] .homepage-card-date,
[data-bs-theme="light"] .trending-date,
[data-bs-theme="light"] .media-meta {
    color: #888;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stat {
        padding: 6px 12px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .homepage-hero {
        min-height: 320px;
    }

    .hero-stats {
        gap: 4px;
    }

    .hero-stat-divider {
        height: 35px;
    }
}

/* ============================================
   23/10/2026 - pesquisa, notícias por tipo, "Ver tudo"
   ============================================ */
/* Ícone da pesquisa dentro do campo (antes caía para baixo do campo) */
.hero-search .input-icon { position: relative; }
.hero-search .input-icon .form-control { padding-right: 3.5rem !important; }
.hero-search .input-icon-addon {
    position: absolute;
    top: 50%;
    right: 1.4rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--bs-gray-500);
    line-height: 1;
}

/* Secções de notícias por tipo: as vazias ficam compactas */
.home-news-card .card-header { min-height: 64px; }
.home-news-empty {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    color: var(--bs-gray-500) !important;
    font-size: .9rem;
}
.home-news-card .card-title h2 { font-size: 1.2rem; }

/* "Ver tudo" das caixas laterais com o mesmo destaque dos botões */
.section-link {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 6px;
    color: var(--imba-accent-light, #E07070);
    background: rgba(var(--imba-accent-rgb, 204, 76, 76), .14);
    border: 1px solid rgba(var(--imba-accent-rgb, 204, 76, 76), .45);
    white-space: nowrap;
}
.section-link:hover,
.section-link:focus-visible { color: #fff; background: var(--imba-accent, #CC4C4C); border-color: var(--imba-accent, #CC4C4C); }
[data-bs-theme="light"] .section-link { color: var(--imba-accent-dark, #A83A3A); }
[data-bs-theme="light"] .section-link:hover { color: #fff; }

@media (max-width: 575.98px) {
    .home-news-card .card-header { flex-wrap: nowrap; gap: .5rem; }
    .home-news-card .card-title h2 { font-size: 1.05rem; }
    .hero-title { font-size: 1.9rem; letter-spacing: -1px; }
}

/* Explorar (/ptcge): estados vazios (23/10/2026) */
.imba-empty-hero {
    border: 1px dashed rgba(var(--imba-accent-rgb, 204, 76, 76), .45);
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(var(--imba-accent-rgb, 204, 76, 76), .12), transparent 70%),
        var(--bs-card-bg);
}
.imba-empty-hero__game { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.imba-empty-hero__icon { font-size: 3rem; color: var(--imba-accent, #CC4C4C); }
.imba-empty-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px dashed var(--bs-gray-300);
    background: rgba(var(--bs-body-color-rgb, 243, 239, 234), .02);
    color: var(--bs-gray-600);
}
.imba-empty-row > i { font-size: 1.25rem; color: var(--imba-accent, #CC4C4C); opacity: .8; }
@media (max-width: 575.98px) { .imba-empty-row .btn { margin-left: 0 !important; width: 100%; } }

/* ============================================
   PROPOSTA 1 (23/10/2026): página inicial melhorada
   Topo com arte à direita e texto à esquerda, faixa «O que podes fazer», torneios,
   filtro de jogos com nome, notícias em linhas com miniatura, barra lateral.
   ============================================ */
.homepage-hero.home-hero-p1 {
    display: block;
    min-height: 0;
    margin-bottom: 2.5rem;
    background: #14141F;
    border: 1px solid #262638;
    text-align: left;
}
.homepage-hero.home-hero-p1--with-strip { margin-bottom: 0; border-radius: 16px 16px 0 0; border-bottom: 0; }
.home-hero-p1 .hero-overlay { display: none; }
.home-hero-p1 .hero-banner-bg,
.home-hero-p1 .home-hero-art { position: absolute; inset: 0 0 0 auto; width: 72%; z-index: 0; display: block; }
.home-hero-p1 .hero-banner-bg > img,
.home-hero-p1 .home-hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.home-hero-p1 .hero-banner-bg::after,
.home-hero-p1 .home-hero-art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #14141F 0%, rgba(20, 20, 31, .85) 28%, rgba(20, 20, 31, .2) 100%) !important;
}
.home-hero-p1 .hero-content { position: relative; z-index: 2; max-width: 620px; padding: 64px 48px 56px; }
.home-hero-p1 .hero-title,
[data-bs-theme="light"] .home-hero-p1 .hero-title { color: #fff; font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; text-shadow: none; margin-bottom: 1rem; }
.home-hero-p1 .hero-subtitle,
[data-bs-theme="light"] .home-hero-p1 .hero-subtitle { color: #CFCAD8; font-size: 1.1rem; line-height: 1.6; margin: 0 0 1.75rem; max-width: 560px; }
.home-hero-p1 .home-hero-ctas { margin-bottom: 1.5rem; }
.home-hero-p1 .home-hero-ctas .btn-light { background: #262638 !important; color: #F3EFEA !important; border: 0 !important; }
.home-hero-p1 .home-hero-ctas .btn-light:hover { background: #30304A !important; }
.home-hero-p1 .hero-search { max-width: 520px; margin: 0; }
.home-hero-p1 .hero-search .form-control { background: rgba(30, 30, 45, .9) !important; border: 1px solid #33334A !important; color: #F3EFEA !important; border-radius: 10px !important; height: 52px; }
.home-hero-p1 .hero-search .form-control::placeholder { color: #A9A4B8; }
.home-hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0 0; font-size: .9rem; color: #A9A4B8; }
.home-hero-stats b { color: #fff; font-size: 1.15rem; font-weight: 700; }

/* Faixa «O que podes fazer», colada ao fundo do topo */
.home-features-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    margin-bottom: 2.5rem;
    border: 1px solid var(--imba-line);
    border-radius: 0 0 16px 16px;
    background: var(--imba-card);
}
.home-feature { display: flex; gap: .9rem; padding: 1.25rem; text-decoration: none; border-right: 1px solid var(--imba-line); }
.home-feature:last-child { border-right: 0; }
.home-feature > i { font-size: 1.35rem; color: var(--imba-accent-light, #E07070); margin-top: .1rem; }
.home-feature b { display: block; color: var(--bs-gray-900); font-weight: 700; margin-bottom: .25rem; }
.home-feature span span { display: block; font-size: .82rem; color: var(--bs-gray-600); line-height: 1.5; }
.home-feature:hover b { color: var(--imba-accent-light, #E07070); }

/* Cabeçalhos de secção, «Ver tudo» e etiquetas */
.home-section { margin-bottom: 2.5rem; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.home-section-head h2 { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--bs-gray-900); }
.home-more { font-size: .85rem; font-weight: 600; color: var(--imba-accent-light, #E07070); text-decoration: none; white-space: nowrap; }
.home-more:hover { color: var(--imba-accent, #CC4C4C); text-decoration: underline; }
[data-bs-theme="light"] .home-more { color: var(--imba-accent-dark, #A83A3A); }
.imba-tag { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; }
.imba-tag--green { background: rgba(63, 178, 127, .15); color: #3FB27F; }
.imba-tag--red { background: rgba(204, 76, 76, .15); color: var(--imba-accent-light, #E07070); }
.imba-tag--gold { background: rgba(242, 184, 75, .15); color: #D99A1E; }
[data-bs-theme="dark"] .imba-tag--green { color: #6FD3A0; }
[data-bs-theme="dark"] .imba-tag--gold { color: #F2C66B; }

/* Torneios: um em destaque e os outros numa lista ao lado */
.home-tournaments { display: flex; flex-wrap: wrap; gap: 1rem; }
.home-tfeat { flex: 2 1 560px; min-width: 0; display: flex; flex-wrap: wrap; overflow: hidden; text-decoration: none; border-radius: 12px; background: var(--imba-card); border: 1px solid var(--imba-line); }
.home-tfeat__img { flex: 1 1 280px; min-width: 0; min-height: 230px; position: relative; background: #262638; }
.home-tfeat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-tfeat__img img.home-tfeat__icon { inset: 50% auto auto 50%; width: 96px; height: 96px; object-fit: contain; transform: translate(-50%, -50%); opacity: .9; }
.home-tfeat__body { flex: 1 1 280px; padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.home-tfeat__name { display: block; font-size: 1.35rem; font-weight: 700; color: var(--bs-gray-900); }
.home-tfeat__meta { display: block; font-size: .85rem; color: var(--bs-gray-600); }
.home-tfeat__facts { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: auto; font-size: .85rem; color: var(--bs-gray-600); }
.home-tfeat__facts b { color: var(--bs-gray-900); }
.home-tfeat:hover .home-tfeat__name { color: var(--imba-accent-light, #E07070); }
.home-prize { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(242, 184, 75, .12); border: 1px solid rgba(242, 184, 75, .4); }
.home-prize span { font-size: .85rem; color: var(--bs-gray-700); }
.home-prize b { font-size: 1.2rem; font-weight: 800; color: #D99A1E; }
[data-bs-theme="dark"] .home-prize span { color: #F2D08A; }
[data-bs-theme="dark"] .home-prize b { color: #F2B84B; }
.home-tlist { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.home-trow { display: flex; align-items: center; gap: .9rem; padding: .9rem; border-radius: 12px; text-decoration: none; background: var(--imba-card); border: 1px solid var(--imba-line); }
.home-trow__icon { width: 52px; height: 52px; border-radius: 10px; background: var(--imba-card-2); display: grid; place-items: center; flex: none; overflow: hidden; color: var(--imba-accent-light, #E07070); }
.home-trow__icon img { width: 34px; height: 34px; object-fit: contain; }
.home-trow__text { flex: 1; min-width: 0; }
.home-trow__text b { display: block; color: var(--bs-gray-900); }
.home-trow__text span { font-size: .8rem; color: var(--bs-gray-600); }
.home-trow__prize { color: #D99A1E; font-size: .9rem; white-space: nowrap; }
[data-bs-theme="dark"] .home-trow__prize { color: #F2B84B; }
.home-trow:hover b { color: var(--imba-accent-light, #E07070); }
.home-organize { background: var(--imba-card); flex: 1; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem; text-align: center; border-radius: 12px; border: 1px dashed var(--bs-gray-400); color: var(--bs-gray-700); font-size: .9rem; text-decoration: none; }
.home-organize > i { font-size: 1.4rem; color: var(--imba-accent-light, #E07070); }
.home-organize b { color: var(--bs-gray-900); }
.home-organize span { font-size: .8rem; color: var(--bs-gray-600); max-width: 280px; }
.home-organize:hover { border-color: var(--imba-accent, #CC4C4C); color: var(--imba-accent-light, #E07070); }

/* Filtro por jogo: ícone + nome */
.game-tabs.home-game-chips { display: flex; flex-wrap: wrap; gap: .5rem; background: none; padding: 0; margin-bottom: 1.5rem; }
.home-game-chips .game-tab-btn { width: auto; height: 40px; display: inline-flex; align-items: center; gap: .5rem; padding: 0 .9rem 0 .4rem; border-radius: 999px; border: 1px solid var(--imba-line); background: var(--imba-card); color: var(--bs-gray-700); font-weight: 600; font-size: .85rem; text-decoration: none; }
.home-game-chips .game-tab-btn .game-tab-icon { width: 26px; height: 26px; border-radius: 6px; }
.home-game-chips .game-tab-btn:hover { border-color: var(--imba-accent, #CC4C4C); background: var(--imba-card); }
.home-game-chips .game-tab-btn.active { background: var(--bs-gray-900); border-color: var(--bs-gray-900); color: var(--bs-body-bg, #14141F); }
.home-game-chips .game-tab-btn--more { padding: 0 .9rem; }

/* Cartões de secção e notícias em linhas */
.home-card { background: var(--imba-card); border: 1px solid var(--imba-line); border-radius: 12px; padding: 1.2rem 1.35rem; }
.home-news-card { margin-bottom: 1rem; }
.home-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.home-card-head h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--bs-gray-900); }
.home-news-row { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; text-decoration: none; }
.home-news-row + .home-news-row { border-top: 1px solid var(--imba-line); }
.home-news-row > img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex: none; background: var(--imba-card-2); }
.home-news-row b { display: block; color: var(--bs-gray-900); font-weight: 600; margin-bottom: .2rem; }
.home-news-row span span { font-size: .8rem; color: var(--bs-gray-600); }
.home-news-row:hover b { color: var(--imba-accent-light, #E07070); }
.home-empty-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.35rem; border-radius: 12px; border: 1px dashed var(--bs-gray-400); color: var(--bs-gray-600); font-size: .9rem; }
.home-empty-line[hidden] { display: none; }

/* Barra lateral */
.home-media-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--imba-line); margin: .5rem 0 1rem; }
.home-media-tabs .nav-link { padding: .55rem .7rem; font-weight: 600; font-size: .85rem; color: var(--bs-gray-600); border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; }
.home-media-tabs .nav-link.active { color: var(--bs-gray-900); border-bottom-color: var(--imba-accent, #CC4C4C); }
.home-event { display: flex; align-items: center; gap: .9rem; padding: .65rem 0; text-decoration: none; }
.home-event + .home-event { border-top: 1px solid var(--imba-line); }
.home-event__date { width: 52px; flex: none; text-align: center; border-radius: 8px; padding: .35rem 0; background: var(--imba-card-2); }
.home-event__date b { display: block; font-size: 1.1rem; color: var(--bs-gray-900); line-height: 1.1; }
.home-event__date span { font-size: .7rem; color: var(--bs-gray-600); }
.home-event__text b { display: block; font-size: .9rem; color: var(--bs-gray-900); }
.home-event__text span { font-size: .78rem; color: var(--bs-gray-600); }
.home-event__text .home-event__prize { color: #D99A1E; }
[data-bs-theme="dark"] .home-event__text .home-event__prize { color: #F2B84B; }
.home-event:hover b { color: var(--imba-accent-light, #E07070); }

@media (max-width: 767.98px) {
    .home-hero-p1 .hero-banner-bg, .home-hero-p1 .home-hero-art { width: 100%; opacity: .45; }
    .home-hero-p1 .hero-content { padding: 40px 22px 36px; }
    .home-feature { border-right: 0; border-bottom: 1px solid var(--imba-line); }
    .home-feature:last-child { border-bottom: 0; }
    .home-news-row > img { width: 88px; height: 50px; }
}

/* ===== Nada solto em cima do fundo: cada bloco da página inicial vive numa superfície ===== */
.home-section { background: var(--imba-card); border: 1px solid var(--imba-line); border-radius: 12px; padding: 1.2rem 1.35rem 1.35rem; }
.home-section .home-section-head h2 { font-size: 1.1rem; }
.home-section .home-tfeat,
.home-section .home-trow,
.home-section .home-organize { background: var(--imba-card-2); border-color: transparent; }
.home-section .home-organize { border: 1px dashed var(--bs-gray-400); }
.home-section .home-card { background: transparent; border: 0; padding: 0; }
.game-tabs.home-game-chips { background: var(--imba-card); border: 1px solid var(--imba-line); border-radius: 12px; padding: .6rem; }
.home-game-chips .game-tab-btn,
.home-game-chips .game-tab-btn:hover { background: var(--imba-card-2); }
.home-game-chips .game-tab-btn.active { background: var(--bs-gray-900); }
.home-empty-line { background: var(--imba-card); border: 1px solid var(--imba-line); }
/* Filtro por jogo: só o ícone (o nome fica no title / aria-label) */
.home-game-chips .game-tab-btn:not(.game-tab-btn--more) { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 12px; border: 2px solid transparent; }
.home-game-chips .game-tab-btn:not(.game-tab-btn--more) .game-tab-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.home-game-chips .game-tab-btn:not(.game-tab-btn--more):hover { border-color: var(--imba-accent, #CC4C4C); }
.home-game-chips .game-tab-btn.active:not(.game-tab-btn--more) { background: var(--imba-card-2); border-color: var(--imba-accent, #CC4C4C); box-shadow: 0 0 0 3px rgba(204, 76, 76, .18); }
.home-game-chips { align-items: center; }
.home-game-chips .game-tab-btn--more { height: 46px; border-radius: 12px; }

/* ===== Jogos grátis agora ===== */
.home-free-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.home-fg { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; text-decoration: none; background: var(--imba-card-2); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.home-fg:hover { border-color: var(--imba-accent, #CC4C4C); transform: translateY(-2px); }
.home-fg__img { position: relative; aspect-ratio: 16 / 9; background: #262638; overflow: hidden; }
.home-fg__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-fg__badge { position: absolute; top: .6rem; left: .6rem; padding: .2rem .55rem; border-radius: 6px; background: #2FA36B; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.home-fg__body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .9rem 1rem; flex: 1; }
.home-fg__name { color: var(--bs-gray-900); font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-fg:hover .home-fg__name { color: var(--imba-accent-light, #E07070); }
.home-fg__meta { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: var(--bs-gray-600); }
.home-fg__meta s { color: var(--bs-gray-500); }
.home-fg__ends { margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--bs-gray-700); }
.home-fg__ends.is-soon { color: #D99A1E; }
[data-bs-theme="dark"] .home-fg__ends.is-soon { color: #F2B84B; }
@media (max-width: 575.98px) { .home-free-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }

/* ===== 03/11/2026: página inicial centrada no que existe =====
   Hero compacto só para visitantes; «Em destaque» (1 grande + 4); filtro com «Todos»; AI Coach na lateral;
   comunidades; jogos grátis numa faixa compacta no fim. */
.homepage-hero.home-hero-p1.home-hero--compact { margin-bottom: 1.75rem; }
.home-hero--compact .hero-content { padding: 36px 40px 32px; max-width: 680px; }
.home-hero--compact .hero-title,
[data-bs-theme="light"] .home-hero--compact .hero-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.home-hero--compact .hero-subtitle,
[data-bs-theme="light"] .home-hero--compact .hero-subtitle { font-size: 1rem; margin-bottom: 1.1rem; }
.home-hero--compact .home-hero-ctas { margin-bottom: 1.1rem; }
.home-hero--compact .hero-search .form-control { height: 46px; }
.home-searchbar { margin-bottom: 1.5rem; }
.home-searchbar .hero-search { max-width: none; margin: 0; }
.home-searchbar .hero-search .form-control { height: 48px; border-radius: 12px !important; background: var(--imba-card) !important; border: 1px solid var(--imba-line) !important; }
.home-section-sub { margin-right: auto; font-size: .85rem; color: var(--bs-gray-600); }
.home-section-head { align-items: center; }

/* Em destaque */
.home-spot { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: auto; gap: 1rem; }
.home-spot__card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; text-decoration: none; background: var(--imba-card-2); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.home-spot__card:hover { border-color: var(--imba-accent, #CC4C4C); transform: translateY(-2px); }
.home-spot__card.is-big { grid-row: span 2; }
.home-spot__img { position: relative; display: block; aspect-ratio: 16 / 9; background: #262638; overflow: hidden; }
.home-spot__card.is-big .home-spot__img { aspect-ratio: auto; flex: 1; min-height: 240px; }
.home-spot__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-spot__body { display: flex; flex-direction: column; gap: .45rem; padding: .8rem .95rem .95rem; }
.home-spot__title { color: var(--bs-gray-900); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-spot__card.is-big .home-spot__title { font-size: 1.3rem; -webkit-line-clamp: 3; }
.home-spot__ex { font-size: .85rem; color: var(--bs-gray-600); }
.home-spot__card:hover .home-spot__title { color: var(--imba-accent-light, #E07070); }

/* Linha de metadados: ícones dos jogos, fonte e data */
.home-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .78rem; color: var(--bs-gray-600); }
.home-news-row .home-meta { margin-bottom: .25rem; }
.home-gi { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.home-news-row .home-gi { width: 20px; height: 20px; }
.home-src { display: inline-flex; padding: .1rem .45rem; border-radius: 5px; background: rgba(102, 192, 244, .12); color: #4C9CCB; font-weight: 600; font-size: .72rem; }
[data-bs-theme="dark"] .home-src { color: #66C0F4; }

/* Filtro: botão «Todos» */
.home-game-chips .game-tab-btn--all { font-size: 1.1rem; color: var(--bs-gray-600); }
.home-game-chips .game-tab-btn--all.active { color: #fff; background: var(--imba-accent, #CC4C4C) !important; border-color: var(--imba-accent, #CC4C4C); }
.home-latest-empty, #homeLatestList > .home-empty-line { margin: .75rem 0 0; }

/* Lateral: AI Coach */
.home-tool { background: linear-gradient(160deg, rgba(204, 76, 76, .14), var(--imba-card) 60%); }
.home-tool__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.25rem; background: rgba(204, 76, 76, .18); color: var(--imba-accent-light, #E07070); }
.home-tool h3 { margin: .8rem 0 .35rem; font-size: 1.05rem; font-weight: 700; color: var(--bs-gray-900); }
.home-tool p { margin: 0 0 1rem; font-size: .85rem; color: var(--bs-gray-600); }

/* Comunidades: cartão «criar a tua» */
.home-create-page { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 1.25rem; text-align: center; border-radius: 12px; border: 1px dashed var(--bs-gray-400); text-decoration: none; color: var(--bs-gray-600); font-size: .85rem; }
.home-create-page b { color: var(--bs-gray-900); font-size: 1rem; }
.home-create-page__plus { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 300; background: rgba(204, 76, 76, .15); color: var(--imba-accent-light, #E07070); }
.home-create-page:hover { border-color: var(--imba-accent, #CC4C4C); }

/* Jogos grátis: faixa compacta */
.home-fgs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.home-fgm { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .5rem; border-radius: 10px; text-decoration: none; background: var(--imba-card-2); border: 1px solid transparent; }
.home-fgm:hover { border-color: var(--imba-accent, #CC4C4C); }
.home-fgm__img { position: relative; flex: 0 0 64px; height: 40px; border-radius: 6px; overflow: hidden; background: #262638; }
.home-fgm__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-fgm__text { min-width: 0; }
.home-fgm__text b { display: block; color: var(--bs-gray-900); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-fgm__text small { font-size: .72rem; color: var(--bs-gray-600); }
.home-fgm__text s { color: var(--bs-gray-500); }
.home-fgm__text em { font-style: normal; }
.home-fgm__text em.is-soon { color: #D99A1E; }
[data-bs-theme="dark"] .home-fgm__text em.is-soon { color: #F2B84B; }

@media (max-width: 991.98px) {
    .home-spot { grid-template-columns: 1fr 1fr; }
    .home-spot__card.is-big { grid-column: span 2; grid-row: auto; }
    .home-fgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
    .home-fgm { flex: 0 0 230px; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
    .home-spot { grid-template-columns: 1fr; }
    .home-spot__card.is-big { grid-column: auto; }
    .home-hero--compact .hero-content { padding: 28px 20px 24px; }
}

/* Pesquisa de jogos: a lupa é um botão (pesquisa ao clicar, não só com Enter) */
.hero-search .input-icon-addon--btn { pointer-events: auto; background: none; border: 0; padding: .35rem; margin: 0; cursor: pointer; border-radius: 50%; color: var(--bs-gray-500); }
.hero-search .input-icon-addon--btn:hover,
.hero-search .input-icon-addon--btn:focus-visible { color: var(--imba-accent-light, #E07070); outline: none; }
.hero-search .input-icon-addon--btn:focus-visible { box-shadow: 0 0 0 3px rgba(204, 76, 76, .35); }
