/* FONTES E GERAL */
body {
    font-family: 'Ubuntu', sans-serif;
    background-color: #f4f7f6;
    overflow-x: hidden;
}

.title-pixel {
    font-family: 'VT323', monospace; /* Fonte pixelada para títulos grandes */
    letter-spacing: 2px;
}

/* NAVBAR TRANSPARENTE */
.trans-nav {
    background: rgba(20, 30, 48, 0.8); /* Fundo escuro semitransparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    padding: 15px 0;
    transition: 0.3s;
}

/* HERO SECTION (A parte principal) */
.hero-section {
    min-height: 100vh; /* Ocupa a tela inteira */
    /* Substitua a URL abaixo por um print bonito de um quarto Habbo */
    background: url('../img/layout/background-room.png') no-repeat center center;
    background-size: cover;
    margin-top: -80px; /* Compensa a altura da navbar */
    padding-top: 80px;
}

/* Camada escura em cima da imagem para o texto aparecer */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(16, 26, 61, 0.95) 0%, rgba(30, 60, 114, 0.8) 100%);
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* ANIMAÇÃO FLUTUANTE (Para o avatar) */
.hero-image {
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* CARDS DE DESTAQUE */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Ícones coloridos */
.icon-box {
    width: 70px;
    height: 70px;
}
.bg-light-blue { background-color: #e3f2fd; }
.bg-light-warning { background-color: #fff3cd; }
.bg-light-green { background-color: #d1e7dd; }

/* Bordas coloridas embaixo dos cards */
.border-bottom-blue { border-bottom: 4px solid #0d6efd; }
.border-bottom-warning { border-bottom: 4px solid #ffc107; }
.border-bottom-green { border-bottom: 4px solid #198754; }

/* ONDA (SVG DIVISOR) */
.custom-shape-divider-bottom-1689 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.custom-shape-divider-bottom-1689 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1689 .shape-fill {
    fill: #f4f7f6; /* Mesma cor do fundo da próxima seção */
}

/* --- ESTILOS DA PÁGINA DE NOTÍCIAS --- */

/* Efeito Hover nos Cards de Notícia */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Ajuste da imagem para não distorcer */
.object-fit-cover {
    object-fit: cover;
}

/* Paginação Bonita */
.page-link {
    color: #444;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Badges com fundo transparente (Estilo Moderno) */
.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

/* --- ESTILOS MODERNOS (GLOBAL) --- */

/* Hero Section com Gradiente */
.modern-hero {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    min-height: 60vh; /* Altura padrão para headers internos */
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Navbar de Vidro */
.glass-nav {
    background: rgba(15, 23, 42, 0.85); /* Um pouco mais escuro para leitura */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Decoração de Fundo (Bolhas de Luz) */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.6;
}
.shape-blue { background: rgba(13, 110, 253, 0.2); width: 400px; height: 400px; top: -100px; right: -100px; }
.shape-yellow { background: rgba(255, 193, 7, 0.15); width: 300px; height: 300px; bottom: 0; left: -50px; }

/* Cards Flutuantes (Efeito Hover) */
.hover-lift-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.hover-lift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Modal de Aviso */
.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- WIDGET FLUTUANTE CORRIGIDO --- */
.habbo-float-card {
    position: fixed !important; /* Força a flutuação */
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important; /* Garante que fique acima de tudo */
    
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    
    padding: 6px 16px 6px 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    
    display: block; /* Garante que não fique escondido */
    transition: all 0.3s ease;
    cursor: default;
    
    /* Animação simples para evitar bugs */
    animation: slideInWidget 0.5s ease-out forwards;
}

@keyframes slideInWidget {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.habbo-float-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.5);
}

.habbo-float-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.habbo-icon-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.habbo-info-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-right: 5px;
}

.habbo-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.habbo-count {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    min-width: 40px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Ajuste Mobile */
@media (max-width: 576px) {
    .habbo-float-card {
        bottom: 15px !important;
        right: 15px !important;
    }
}