/* =========================================
   Estilos Globais e Layout
   ========================================= */
body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh; /* Garante que ocupe a tela toda */
    background-color: #121212;
    color: #ffffff;
    padding: 20px 0; /* Adiciona espaço no mobile */
    box-sizing: border-box;
}

h1 {
    word-break: break-word;
    font-size: 2.2rem; /* Tamanho padrão */
}

.container {
    text-align: center;
    width: 100%;
    max-width: 960px; /* Limita a largura no desktop */
    padding: 0 15px;
    box-sizing: border-box;
}

.opcoes {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

/* =========================================
   Componentes: Navegação por Ícones
   ========================================= */
.item {
    cursor: pointer;
    text-align: center;
    width: 120px;
}

.icone {
    width: 80px;
    height: 80px;
    background-color: #1e1e1e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    color: #ffffff;
    margin: 0 auto 10px;
    border: 1px solid #333;
    transition: background-color 0.3s;
}

.item:hover .icone {
    background-color: #333;
}

/* =========================================
   Componentes: Cards de Apps
   ========================================= */
.app-card-desktop {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 280px; /* Um pouco mais de espaço */
    
    /* CORREÇÃO DE ALINHAMENTO (Problema 3 do outro arquivo) */
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante que todos os cards na linha tenham a mesma altura */
}

.app-card-desktop .app-icon {
    max-width: 80px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.app-card-desktop .app-version {
    font-size: 0.9em;
    color: #aaa;
}

.app-card-desktop .button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    
    /* CORREÇÃO DE ALINHAMENTO */
    margin-top: auto; /* Empurra o grupo de botões para a base do card */
}

/* =========================================
   Componentes: Botões
   ========================================= */

/* Classe base para botões */
.btn {
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Botão Primário (Download) */
.btn-download {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}
.btn-download:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #ffffff;
}

/* Botão Secundário (Site) */
.btn-site {
    background-color: transparent;
    color: #ffc107;
    border-color: #ffc107;
}
.btn-site:hover {
    background-color: #ffc107;
    color: #121212;
}

/* Botão Voltar (Unificado) */
.btn-voltar {
    margin-top: 20px;
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #ffffff;
    font-size: 1em;
}
.btn-voltar:hover {
    background-color: #333;
}


/* =========================================
   Responsividade (Mobile)
   ========================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group > a {
        width: 100%;
        box-sizing: border-box;
    }
}