/* =========================================
   CONFIGURAÇÕES GLOBAIS
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    /* Proteção contra cópia: Desativa seleção de texto */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Padrão */
}

img {
    -webkit-user-drag: none;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.brand-logo-img {
    height: 45px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text .main-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Extra Bold */
    font-size: 24px;  /* Tamanho aumentado */
    letter-spacing: 2px;
    color: #ffffff;
}

/* =========================================
   NAVEGAÇÃO
   ========================================= */
.desktop-nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.desktop-nav a:hover {
    color: #ffffff;
}

.mobile-nav {
    display: none;
}

.menu-toggle {
    display: none;
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   CONTEÚDO PRINCIPAL
   ========================================= */
main {
    padding-top: 80px;
}

section {
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Adicionando bordas finas no topo e base de cada sessão */
    border-top: 0.2px solid rgba(255, 255, 255, 0.164);
    border-bottom: 0px solid rgba(255, 255, 255, 0.164);
}

#about {
    border-top: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.section-title {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.who-we-are {
    background: linear-gradient(to bottom, #0a0a0a, #000);
}

.who-we-are h1 {
    font-size: 45px;
    margin-bottom: 30px;
    font-weight: 800;
}

.who-we-are p {
    color: #ccc;
    line-height: 1.8;
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 25px;
}

.highlight {
    color: #ffffff;
    font-weight: bold;
}

/* Novo destaque para palavras-chave (apenas cor branca) */
.highlight-white {
    color: #ffffff;
    font-weight: 700;
}

/* =========================================
   GAMES GRID --- SEÇÃO MODIFICADA ---
   ========================================= */
.games-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* Aumentado o espaçamento entre os cards */
    flex-wrap: wrap;
    margin-top: 20px;
}

.game-card {
    background: #111;
    width: 440px; /* Card mais largo */
    height: 150px; /* Força a altura do card para ser igual à altura do ícone */
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid transparent; 
    text-align: left;
    display: flex; 
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.game-card:hover, .game-card.mobile-focus {
    transform: translateY(-10px) scale(1.02);
    border-color: #ffffff; 
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.game-thumb {
    width: 150px;  /* Imagem maior */
    height: 150px; /* Mantém o aspecto quadrado e define a altura do card */
    flex-shrink: 0;
    background-color: #222;
    background-size: cover;      /* Garante que a imagem cubra todo o espaço */
    background-position: center; /* Centraliza a imagem */
}

.game-details {
    flex-grow: 1;
    padding: 0 25px; /* Padding vertical removido, horizontal aumentado um pouco */
    display: flex;
    flex-direction: column; /* Organiza título e stats verticalmente */
    justify-content: center;
    min-width: 0; /* ADICIONADO: Garante que o flex item possa encolher e respeitar o overflow */
}

.game-name {
    margin: 0 0 15px 0; /* Espaço entre o título e as estatísticas */
    font-weight: 700;
    font-size: 20px; /* Fonte do título maior */
    color: #fff; /* Título mais branco e destacado */

    /* ADICIONADO: Controle de texto que transborda */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-stats p {
    font-size: 14px;
    color: #aaa;
    margin: 6px 0; /* Espaçamento entre estatísticas mais justo */
    display: flex;
    align-items: center;
    
    /* ADICIONADO: Controle de texto que transborda (para consistência) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nova classe para os ícones */
.stat-icon {
    color: #aaa; /* Garante a cor cinza */
    margin-right: 8px; /* Adiciona espaço entre o ícone e o texto */
    width: 16px; /* Define uma largura fixa para alinhar os textos */
    text-align: center; /* Centraliza o ícone */
}


/* =========================================
   STAY UPDATED SECTION
   ========================================= */
.stay-updated-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('backgroundstayupdated.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 20px;
}

.update-content {
    max-width: 800px;
    margin: 0 auto;
}

.update-content p {
    color: #ccc;
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 30px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    color: #000;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s ease;
    border: 2px solid #ffffff;
}

.discord-btn:hover {
    background-color: transparent;
    color: #ffffff;
    transform: scale(1.05);
}

.btn-icon {
    height: 24px;
    width: auto;
    /* Inverte a cor do ícone no hover caso o ícone original seja escuro */
    filter: brightness(0);
    transition: 0.3s;
}

.discord-btn:hover .btn-icon {
    filter: brightness(0) invert(1);
}

/* =========================================
   RODAPÉ
   ========================================= */
footer {
    background: #000;
    padding: 60px 0;
    border-top: 1px solid #ffffff;
    display: flex;
    justify-content: center;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    color: #666;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: 0.3s;
}

.social-img:hover {
    filter: none;
    transform: scale(1.1);
}

/* =========================================
   ANIMAÇÕES DE SCROLL
   ========================================= */
.hidden {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(50px);
    transition: opacity 1s ease-out, filter 1s ease-out;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    body.menu-open header {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .game-card {
        width: 100%; /* Ocupa a largura total no mobile */
        max-width: 440px;
    }

    .brand-text {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        transition: 0.3s;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 999;
        background: rgba(0, 0, 0, 0.4); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s;
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav a {
        color: white;
        text-decoration: none;
        font-size: 24px;
        font-weight: 700;
        margin: 20px 0;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-icons {
        order: 1;
    }

    .copyright {
        order: 2;
    }

    .section-title {
        font-size: 38px;
    }

    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}