
/* ARQUIVO: retro-gamers/style.css */

:root {
    --fundo-principal: #1a1a2e;
    --cor-primaria: #8a2be2;
    --cor-destaque: #ffd800;
    --cor-neutra: #b2b2b2;
    --cor-texto: #ecf0f1;
    --cor-card: #2c2c54;
    --fonte-titulo: 'Press Start 2P', cursive;
    --fonte-corpo: 'Source Sans Pro', sans-serif;
}

body {
    background-color: var(--fundo-principal);
    color: var(--cor-texto);
    font-family: var(--fonte-corpo);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Melhoria de renderização de fonte em mobile */
    -webkit-text-size-adjust: 100%; 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================
   1. HEADER PÚBLICO & NAV (Login/Landing)
   =================================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--cor-primaria);
    /* RESPONSIVO: Permite quebrar linha em telas pequenas */
    flex-wrap: wrap; 
    gap: 15px;
}

.logo img { height: 100px; }

/* Ajuste Mobile: Logo */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }
    .logo img { height: 80px; }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Segurança para telas estreitas */
    justify-content: center;
}

/* Botão Login */
.login-btn {
    background-color: var(--cor-destaque);
    color: var(--fundo-principal);
    font-family: var(--fonte-corpo);
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.2s ease;
    white-space: nowrap; /* Evita quebra de texto no botão */
}
.login-btn:hover { transform: scale(1.05); }

/* Seletor de Idioma */
.lang-selector {
    display: flex;
    gap: 10px;
    background-color: var(--cor-card);
    padding: 5px 10px;
    border-radius: 5px;
}
.lang-selector a {
    text-decoration: none;
    font-size: 1.5em;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.lang-selector a:hover { opacity: 1; transform: scale(1.1); }
.lang-selector a.active {
    opacity: 1;
    transform: scale(1.1);
    color: #fff;
    border-bottom: 2px solid var(--cor-destaque);
    pointer-events: none;
}

/* ===================================================
   2. HERO SECTION & LANDING PAGE
   =================================================== */
.hero {
    text-align: center;
    padding: 60px 0;
}
@media (max-width: 600px) {
    .hero { padding: 40px 0; }
}

.hero h1 {
    font-family: var(--fonte-titulo);
    color: var(--cor-destaque);
    font-size: 2.2em;
    text-shadow: 3px 3px 0px var(--cor-primaria);
    margin: 0;
    line-height: 1.4; /* Espaçamento melhor em mobile */
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.5em; }
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px auto 30px auto;
    color: var(--cor-neutra);
}

.free-badge {
    background-color: rgba(255, 216, 0, 0.1);
    border: 1px solid var(--cor-destaque);
    color: var(--cor-destaque);
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Stats Dashboard Público */
.public-dashboard { padding: 40px 0; }
.section-title {
    font-family: var(--fonte-titulo);
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 40px;
}
.stats-grid {
    display: grid;
    /* RESPONSIVO: auto-fit ajusta colunas automaticamente */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.stats-card {
    background-color: var(--cor-card);
    border: 1px solid var(--cor-primaria);
    padding: 25px;
    text-align: center;
    border-radius: 8px;
}
.stats-card h3 { margin-top: 0; font-size: 1.1em; color: var(--cor-texto); }
.stats-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--cor-destaque);
    margin: 10px 0;
}
.top-games-list {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 1.1em;
    color: var(--cor-neutra);
}
.top-games-list li { margin-bottom: 5px; }

/* Partner & Footer */
.partner-banner {
    text-align: center;
    padding: 40px 0;
    margin: 20px 0;
    background-color: var(--cor-card);
    border-radius: 8px;
    border-top: 1px solid var(--cor-primaria);
    border-bottom: 1px solid var(--cor-primaria);
}
.partner-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.partner-banner a:hover img { opacity: 1; }

.site-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid var(--cor-primaria);
    color: var(--cor-neutra);
    font-size: 0.9em;
}

/* ===================================================
   3. FEEDS DE JOGOS (Cards Públicos)
   =================================================== */
.free-games-feed {
    margin: 40px 0;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
}
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
    flex-wrap: wrap; /* Mobile: quebra linha */
    gap: 10px;
}
@media (max-width: 600px) {
    .feed-header { flex-direction: column; text-align: center; }
}

.games-grid {
    display: grid;
    /* RESPONSIVO: Colunas flexíveis com mínimo de 220px */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.feed-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permite botões em várias linhas no mobile */
}
.feed-tab-btn {
    background-color: transparent;
    border: 2px solid var(--cor-neutra);
    color: var(--cor-neutra);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--fonte-titulo);
    font-size: 0.8em;
    transition: all 0.3s ease;
    flex-grow: 1; /* Ocupa espaço disponível no mobile */
    max-width: 150px;
    white-space: nowrap;
}
.feed-tab-btn:hover { border-color: var(--cor-destaque); color: var(--cor-texto); }
.feed-tab-btn.active {
    background-color: var(--cor-destaque);
    border-color: var(--cor-destaque);
    color: var(--fundo-principal);
}
/* Cores específicas das Lojas */
.feed-tab-btn[data-target="epic"].active { background-color: #333; color: #fff; border-color: #333; }
.feed-tab-btn[data-target="psn"].active { background-color: #003791; color: #fff; border-color: #003791; }
.feed-tab-btn[data-target="xbox"].active { background-color: #107C10; color: #fff; border-color: #107C10; }
.feed-tab-btn[data-target="android"].active { background-color: #3DDC84; color: #000; border-color: #3DDC84; }

.store-content {
    display: none;
    animation: fadeIn 0.5s;
}
.store-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo do Card de Jogo (Feed) */
.game-card {
    background-color: #2c2c54;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #40407a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: var(--cor-destaque);
}
.game-thumb {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
}
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}
.game-card:hover .game-thumb img { transform: scale(1.1); }
.meta-float {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
    border: 1px solid #666;
}
.meta-float.high { border-color: #66cc33; color: #66cc33; }
.meta-float.mid { border-color: #ffcc33; color: #ffcc33; }

.game-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.game-title {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    color: #fff;
    font-weight: bold;
    line-height: 1.3;
}
.game-tag {
    font-size: 0.9em;
    color: #b2bec3;
    display: flex;
    align-items: center;
    gap: 6px;
}
.game-tag.expire {
    color: var(--cor-destaque);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: bold;
}
.feed-update-info { color: #a4b0be; font-size: 0.9em; margin-top: 5px; }
.store-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--cor-destaque);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 0.9em;
}
.store-link:hover { border-bottom-color: var(--cor-destaque); }

/* ===================================================
   4. DASHBOARD PRIVADO (Header & User)
   =================================================== */
.dashboard-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.dashboard-header {
    background-color: var(--cor-card);
    border-bottom: 2px solid var(--cor-primaria);
    padding: 15px 20px;
    gap: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* RESPONSIVO: Permite quebra */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Bloco Esquerdo: Info Usuário */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}
/* Mobile: Ajuste de avatar e info */
@media (max-width: 600px) {
    .user-info {
        flex-direction: row; 
        width: 100%;
        margin-bottom: 10px;
    }
}

.user-details-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}
.nickname-row { display: flex; align-items: center; gap: 10px; }
.moral-tag {
    font-size: 0.75em;
    border: 1px solid;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.stats-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    font-size: 0.85em;
    color: #aaa;
    flex-wrap: wrap; /* Evita estouro em telas muito pequenas */
}
.mini-stat {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: help;
}
.avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 2px solid var(--cor-destaque);
    flex-shrink: 0;
}
.nickname { font-weight: bold; font-size: 1.1em; }

/* Bloco Central: Graduação */
.user-graduation {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
}
/* Mobile: Graduação vai para baixo em tela cheia */
@media (max-width: 992px) {
    .user-graduation {
        border: none;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
        padding: 10px 0;
        width: 100%;
        justify-content: center;
        order: 3; /* Joga para baixo dos botões no mobile */
        margin-top: 10px;
        background: rgba(0,0,0,0.2);
    }
}

.grad-icon-wrapper {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: #0b0b15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    border: 2px solid var(--cor-destaque);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 216, 0, 0.2);
}
.grad-icon-img { width: 100%; height: 100%; object-fit: cover; }
.grad-details { display: flex; flex-direction: column; line-height: 1.3; }
.grad-title {
    font-family: var(--fonte-titulo);
    font-size: 0.75em;
    color: var(--cor-destaque);
    text-transform: uppercase;
}
.grad-desc {
    font-size: 0.65em;
    color: #aaa;
    max-width: 200px;
    white-space: normal;
    line-height: 1.2;
    margin-top: 2px;
}

/* Bloco Direito: Ações */
.user-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 992px) {
    .user-actions { 
        justify-content: flex-end; 
        flex-grow: 1;
    }
}
@media (max-width: 600px) {
    .user-actions {
        width: 100%;
        justify-content: space-between;
    }
    .btn-action {
        flex-grow: 1;
        justify-content: center;
    }
}

.btn-action {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, filter 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.btn-action:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-invite { background-color: #0984e3; }
.btn-support { background-color: #d63031; }
.btn-contact { background-color: #6c5ce7; }

.logout-btn {
    margin-left: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #000000;
    transition: background-color 0.2s;
}
.logout-btn:hover { background-color: #333333; border-color: #555; color: #fff; }

/* ===================================================
   5. NAVEGAÇÃO INTERNA (Abas & Filtros)
   =================================================== */
.dashboard-main { max-width: 1100px; margin: 0 auto; padding: 20px; }
.tabs {
    display: flex; gap: 10px;
    border-bottom: 2px solid var(--cor-card);
    margin-bottom: 20px;
    /* RESPONSIVO: Scroll horizontal para abas não quebrarem layout */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.tab-link {
    background-color: transparent; border: none;
    color: var(--cor-neutra);
    font-family: var(--fonte-titulo); font-size: 0.9em;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.tab-link:hover { color: var(--cor-texto); }
.tab-link.active { color: var(--cor-destaque); border-bottom-color: var(--cor-destaque); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Filtros */
.fila-filter-container {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 10px; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--cor-card);
    flex-wrap: wrap; /* Mobile Safe */
}
.filter-label {
    color: var(--cor-neutra); font-weight: bold;
    margin-right: auto;
    font-family: var(--fonte-titulo); font-size: 0.9em;
}
/* Mobile: Filtros */
@media (max-width: 600px) {
    .filter-label { width: 100%; margin-bottom: 5px; }
    .fila-filter-btn { flex-grow: 1; text-align: center; }
}

.fila-filter-btn {
    background: transparent; border: 1px solid var(--cor-neutra);
    color: var(--cor-neutra);
    padding: 5px 12px; border-radius: 20px;
    cursor: pointer; font-size: 0.9em;
    transition: all 0.2s ease;
}
.fila-filter-btn:hover { background: var(--cor-card); border-color: var(--cor-destaque); }
.fila-filter-btn.active {
    background-color: var(--cor-destaque); border-color: var(--cor-destaque);
    color: var(--fundo-principal); font-weight: bold;
}
/* Cores dos Filtros */
.fila-filter-btn[data-filter="green"].active { background-color: #107C10; border-color: #107C10; color: #fff; }
.fila-filter-btn[data-filter="yellow"].active { background-color: #ffd800; border-color: #ffd800; color: #000; }
.fila-filter-btn[data-filter="red"].active { background-color: #c0392b; border-color: #c0392b; color: #fff; }

/* ===================================================
   6. FORMULÁRIOS & FILA (Create Room)
   =================================================== */
.fila-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; gap: 20px;
    flex-wrap: wrap;
}
.fila-search {
    flex-grow: 1; padding: 12px; font-size: 1.1em;
    background: var(--fundo-principal); border: 1px solid var(--cor-primaria);
    color: var(--cor-texto); border-radius: 5px;
    min-width: 200px; /* Evita ficar minúsculo */
}
.btn-show-create {
    background-color: var(--cor-destaque); color: var(--fundo-principal);
    border: none; padding: 12px 20px; font-weight: bold;
    font-size: 1em; border-radius: 5px;
    cursor: pointer; transition: transform 0.2s;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .btn-show-create { flex-grow: 1; }
}
.btn-show-create:hover { transform: scale(1.02); }

.collapsible, .proposal-form-container {
    display: none; background: var(--cor-card);
    padding: 20px; border-radius: 8px;
    border: 1px solid #444; margin-bottom: 30px;
}
.proposal-form-container { display: none; } 

.proposal-form label {
    display: block; margin-bottom: 5px;
    font-weight: bold; color: #ccc; font-size: 0.9em;
}
.form-group { margin-bottom: 15px; }
.proposal-form input, .proposal-form select, .proposal-form textarea {
    width: 100%; padding: 10px;
    background: #1a1a2e; border: 1px solid #555; color: #fff;
    border-radius: 4px; box-sizing: border-box; /* RESPONSIVO: Garante que padding não estoure width */
    font-size: 16px; /* Evita zoom automático no iPhone */
}
.options-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr 100px; 
    gap: 15px; 
}
@media (max-width: 600px) {
    .options-grid { grid-template-columns: 1fr; } /* Mobile: 1 coluna */
}

.btn-propose {
    background-color: var(--cor-destaque); color: var(--fundo-principal);
    border: none; padding: 10px 20px; font-weight: bold;
    font-size: 1em; border-radius: 5px;
    cursor: pointer; transition: transform 0.2s;
    width: 100%; /* Mobile Friendly */
}
.btn-propose:hover { transform: scale(1.05); }

/* Autocomplete */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a2e; /* Fundo escuro */
    border: 1px solid #444;
    border-radius: 0 0 5px 5px;
    z-index: 1000; /* Alto para flutuar sobre tudo */
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: none; /* JS controla isso */
}

.suggestion-item {
    padding: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #2c2c54;
}

.suggestion-item.loading { color: #ffd800; font-style: italic; cursor: default; }
.suggestion-item.error { color: #ff4444; cursor: default; }
.suggestion-item.no-result { color: #888; cursor: default; }

.checkbox-group.inline {
    display: flex; gap: 15px; flex-wrap: wrap;
    background: var(--fundo-principal); padding: 10px;
    border-radius: 5px; align-items: center;
}
.checkbox-group.inline label { margin: 0; font-weight: normal; color: var(--cor-texto); display: flex; align-items: center; gap: 5px; }

/* Slots de Horário */
.time-slot-inputs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.time-slot { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.time-slot:last-child { margin-bottom: 0; }
.time-slot label { font-weight: bold; color: var(--cor-destaque); margin-bottom: 0; flex-shrink: 0; }
.time-slot input {
    flex-grow: 1; width: auto; max-width: 240px;
    background: #1a1a2e; border: 1px solid #555; color: #fff;
    padding: 8px; border-radius: 4px; box-sizing: border-box;
}
.btn-clear-slot {
    background: #c0392b; color: #fff; border: none; border-radius: 50%;
    width: 24px; height: 24px; line-height: 24px; text-align: center;
    font-weight: bold; font-size: 14px; cursor: pointer;
    padding: 0; flex-shrink: 0; margin-left: 5px;
}
.btn-clear-slot:hover { background: #ff4444; }

.form-footer {
    margin-top: 25px; display: flex;
    justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.form-footer .ajax-message {
    margin-top: 0; flex-grow: 1; text-align: left; max-width: 100%;
}

/* ===================================================
   7. PROPOSAL CARDS (O Layout Padronizado)
   =================================================== */
.fila-grid, 
#minhas-salas-grid-container {
    display: grid;
    /* Força exatamente 2 colunas de tamanhos iguais */
    grid-template-columns: 1fr 1fr; 
    gap: 25px;
}

/* Responsividade: Vira 1 coluna apenas em telas menores (Tablets/Celulares) */
@media (max-width: 900px) {
    .fila-grid, 
    #minhas-salas-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Grid específico para "Minhas Salas" (2 colunas) */
#minhas-salas-grid-container { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { #minhas-salas-grid-container { grid-template-columns: 1fr; } }

.proposal-card {
    border: 1px solid #2a2a40; background: #151525;
    padding: 0; overflow: hidden; border-radius: 8px;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.proposal-card.full { opacity: 0.7; border-color: #666; }
.proposal-card.closed {
    opacity: 0.5; background: #111;
    border-color: #444; border-style: dashed;
}

/* Cabeçalho do Card */
.card-header-tags {
    background: #0b0b15; padding: 10px 15px;
    display: flex; justify-content: flex-start; align-items: center;
    font-size: 0.85em; gap: 15px; border-bottom: 1px solid #2a2a40;
    flex-wrap: wrap; /* Mobile Safe */
}
.tag-mode { color: #fff; }
.semaphore-status {
    display: flex; align-items: center; gap: 5px;
    font-size: 1.1em; cursor: help; margin-right: 10px;
}
.semaphore-text {
    font-size: 0.8em; font-family: var(--fonte-corpo);
    font-weight: bold; color: var(--cor-neutra);
}
.tag-validade { color: #aaa; font-style: italic; margin-left: auto; }

/* --- CORPO DO CARD (STANDARD 2.0) --- */
.card-body-std {
    padding: 15px; display: flex;
    gap: 15px; align-items: flex-start;
}
.card-col-img {
    width: 90px; height: 90px; flex-shrink: 0;
}
.card-game-img-std {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 6px; border: 1px solid #444;
}
.card-col-info {
    flex-grow: 1; display: flex; flex-direction: column;
    justify-content: center; min-width: 0;
}
.card-title {
    margin: 0; color: #fff; font-size: 1.1em; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-desc {
    font-size: 0.9em; color: #ccc; margin: 5px 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.lang-break-row {
    flex-basis: 100%; display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap;
}
.tag-idioma {
    font-size: 1.1em; cursor: help; margin-left: 4px;
}

/* Coluna Direita (Meta & User) */
.card-col-meta {
    width: 140px; flex-shrink: 0;
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 15px;
}
.meta-badge.platform {
    background: #1a1a2e; border: 1px solid #444; color: #aaa;
    font-size: 0.75em; padding: 4px 8px; border-radius: 4px;
    text-transform: uppercase; font-weight: bold;
    letter-spacing: 0.5px; text-align: right;
}
.user-clean-display {
    display: flex; flex-direction: row;
    align-items: center; gap: 10px;
    text-align: right; justify-content: flex-end;
}
.clean-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; border: 2px solid #333;
    order: 2; 
}
.clean-info {
    display: flex; flex-direction: column;
    align-items: flex-end; order: 1;
}
.clean-name {
    color: #fff; font-weight: bold; font-size: 0.9em;
    line-height: 1.2; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 90px;
}
.clean-moral {
    font-size: 0.7em; border: 1px solid;
    padding: 1px 5px; border-radius: 4px;
    margin-top: 2px; font-weight: bold;
}

/* Mobile: Ajuste do corpo do card */
@media (max-width: 550px) {
    .card-body-std { flex-wrap: wrap; }
    .card-col-meta {
        width: 100%; flex-direction: row;
        justify-content: space-between; align-items: center;
        border-top: 1px solid #333; padding-top: 10px;
    }
    .user-clean-display { flex-direction: row; text-align: left; }
    .clean-avatar { order: 1; margin-right: 0; }
    .clean-info { order: 2; align-items: flex-start; }
    .card-col-img { width: 60px; height: 60px; } /* Imagem menor no mobile */
}

/* Footer do Card */
.card-footer {
    background: #1a1a2e; padding: 12px 20px;
    display: flex; justify-content: space-between;
    align-items: center; border-top: 1px solid #2a2a40;
}
.slots { font-size: 1.2em; letter-spacing: 2px; }
.btn-join {
    background-color: var(--cor-primaria); color: var(--cor-texto);
    border: none; padding: 8px 15px; font-weight: bold;
    border-radius: 5px; cursor: pointer;
}
.btn-join:hover { filter: brightness(1.2); }
.btn-join.full { background: #444; cursor: help; }

/* Ações Minhas Salas */
.card-my-room-actions { display: flex; gap: 10px; }
.btn-edit-sala {
    background-color: var(--cor-primaria); color: var(--cor-texto);
    border: none; padding: 8px 15px; font-weight: bold;
    border-radius: 5px; cursor: pointer;
}
.btn-fechar-sala {
    font-size: 0.9em; padding: 8px 15px;
    background: #c0392b; color: #fff;
    border:none; border-radius: 5px; cursor: pointer;
}
.btn-discord {
    background-color: #5865F2; color: #fff;
    border: none; padding: 8px 15px; font-weight: bold;
    border-radius: 5px; cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    font-size: 0.9em; transition: background-color 0.2s;
}
.btn-discord:hover { background-color: #4752c4; }

/* Avisos de Segurança (Tab Minhas Salas) */
.security-warning {
    display: flex; gap: 20px; align-items: center;
    position: relative; padding: 15px; padding-right: 40px;
    border-radius: 8px; margin-bottom: 20px; border: 1px solid;
}
@media (max-width: 600px) {
    .security-warning { flex-direction: column; text-align: center; gap: 10px; padding: 20px 10px;}
    .warning-close-btn { top: 5px; right: 5px; }
}
.security-warning.yellow { background: #3a361a; border-color: var(--cor-destaque); color: var(--cor-destaque); }
.security-warning.red { background: #3a1a1a; border-color: #c0392b; color: #ff4444; }
.security-warning .icon-warning { font-size: 2.5em; line-height: 1; }
.warning-close-btn {
    position: absolute; top: 5px; right: 10px;
    background: transparent; border: none; color: inherit;
    font-size: 2em; font-weight: bold; cursor: pointer;
}

/* ===================================================
   8. AGENDA & CONFIG
   =================================================== */
.agenda-form {
    background: var(--cor-card); padding: 20px;
    border-radius: 8px; margin-bottom: 20px;
}
.form-group-inline { margin-bottom: 20px; }
.form-group-inline label {
    display: block; font-weight: bold;
    color: var(--cor-destaque); margin-bottom: 10px;
}
.form-control {
    padding: 10px; background: #1a1a2e;
    border: 1px solid #555; color: #fff; border-radius: 4px;
    box-sizing: border-box; /* Garante width 100% correto */
}
.gamertag-inputs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.gamertag-inputs input {
    background: #1a1a2e; border: 1px solid #555;
    color: #fff; padding: 10px; width: 100%; box-sizing: border-box;
}

/* Tabela Responsiva com Scroll */
.agenda-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.agenda-table {
    width: 100%; border-collapse: collapse;
    margin-top: 10px; text-align: center;
    min-width: 500px; /* Força scroll em telas pequenas */
}
.agenda-table th, .agenda-table td {
    border: 1px solid var(--cor-primaria); padding: 12px;
}
.agenda-table th { background: var(--fundo-principal); }
.agenda-table input {
    width: 100%; background: var(--fundo-principal);
    border: 1px solid #555; color: var(--cor-texto);
    padding: 8px; text-align: center;
    border-radius: 4px; box-sizing: border-box;
}
input.invalid { border-color: #c0392b !important; background: #3a1a1a !important; }

.btn-salvar-agenda {
    background-color: var(--cor-destaque); color: var(--fundo-principal);
    border: none; padding: 12px 25px; font-weight: bold;
    font-size: 1.1em; border-radius: 5px; cursor: pointer;
    transition: transform 0.2s;
    width: 100%; /* Mobile Friendly */
}
.btn-salvar-agenda:hover { transform: scale(1.02); }
.btn-salvar-agenda:disabled { background-color: #555; color: #999; cursor: not-allowed; }

/* ===================================================
   9. MODAL & UTILITÁRIOS
   =================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 10px; /* Espaço nas bordas em mobile */
    box-sizing: border-box;
}
.modal-content {
    background: var(--cor-card); border: 1px solid var(--cor-primaria);
    padding: 30px; border-radius: 8px;
    width: 100%; max-width: 600px;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 90vh; overflow-y: auto; /* Scroll interno se for muito alto */
}
.modal-close {
    position: absolute; top: 10px; right: 15px;
    background: transparent; border: none;
    color: var(--cor-neutra); font-size: 2em;
    font-weight: bold; cursor: pointer;
}

/* Fix Datepicker (Dark Mode) */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1); cursor: pointer;
    opacity: 0.6; transition: 0.2s;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Mensagens AJAX */
.ajax-message {
    display: none; padding: 10px 15px;
    margin-top: 15px; border-radius: 5px;
    font-weight: bold; text-align: center;
}
.ajax-message.success { background-color: #107C10; color: #fff; border: 1px solid #3DDC84; }
.ajax-message.error { background-color: #c0392b; color: #fff; border: 1px solid #ff4444; }

/* Estilos de Avaliação (Radio Icons) */
.aval-opt { cursor: pointer; text-align: center; }
.aval-opt input { display: none; }
.aval-icon {
    font-size: 1.8em; opacity: 0.3;
    transition: 0.2s; display: block; filter: grayscale(100%);
}
.aval-opt input:checked + .aval-icon,
.aval-opt:hover .aval-icon {
    opacity: 1; transform: scale(1.2); filter: grayscale(0%);
}

/* ===================================================
   10. RANKING
   =================================================== */
.ranking-container {
    overflow-x: auto; /* Scroll horizontal em mobile */
    -webkit-overflow-scrolling: touch;
}
.ranking-header-row, .ranking-row {
    min-width: 700px; /* Garante largura mínima para não quebrar colunas */
}

/* --- ESTILOS DO CARROSSEL DE JOGOS (Feed Index) --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* O container que rola */
.games-carousel {
    display: flex;
    gap: 15px; /* Gap reduzido para caber mais */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    width: 100%;
    /* Esconder Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.games-carousel::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* AJUSTE: Largura reduzida para 220px (padrão anterior) para exibir mais cards */
.games-carousel .game-card {
    min-width: 220px; 
    max-width: 220px;
    flex-shrink: 0;
}

/* Botões de Navegação */
.nav-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--cor-primaria);
    color: #fff;
    font-size: 1.2em;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    flex-shrink: 0;
}
.nav-btn:hover {
    background: var(--cor-destaque);
    color: #000;
    border-color: var(--cor-destaque);
    transform: scale(1.1);
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .nav-btn { display: none; } /* Oculta setas no mobile (usa touch) */
    .carousel-wrapper { gap: 0; }
    .games-carousel { padding-right: 20px; }
}

/* ===================================================
   CORREÇÃO VISUAL: ABAS NO MOBILE
   =================================================== */
@media (max-width: 600px) {
    .tabs {
        /* Transforma a lista horizontal em uma grade flexível */
        flex-wrap: wrap; 
        overflow-x: visible; /* Remove o scroll horizontal */
        justify-content: space-between; /* Espalha os botões */
        gap: 8px; /* Espacinho entre botões */
        border-bottom: none; /* Remove a linha inferior padrão */
        padding-bottom: 10px;
    }

    .tab-link {
        /* Cada aba ocupa aprox. 48% da tela (2 por linha) */
        flex: 1 0 45%; 
        text-align: center;
        padding: 12px 5px;
        background-color: #2a2a40; /* Fundo escuro para parecer botão */
        border-radius: 6px;
        border: 1px solid #444; /* Borda sutil */
        border-bottom: 1px solid #444 !important; /* Remove o estilo de borda inferior ativa padrão */
        font-size: 0.85em;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Estado Ativo no Mobile (Estilo Botão Pressionado) */
    .tab-link.active {
        background-color: var(--cor-destaque);
        color: #000;
        font-weight: bold;
        border-color: var(--cor-destaque) !important;
        box-shadow: 0 0 10px rgba(255, 216, 0, 0.3);
    }
}