@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
    --color-bg: #E9EBEE;
    --color-container: #FFFFFF;
    --color-header-bg: #4267B2;
    --color-text: #1d2129;
    --color-primary: #4267B2;
    --color-approve: #42b72a;
    --color-block: #fa3e3e;
    --color-border: #dddfe2;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 500px; /* Ancho típico de un feed */
    background: var(--color-container);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 700px;
}

/* --- Modales --- */
.modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 100; color: white; text-align: center; padding: 20px;
}
.modal-content { max-width: 600px; }
.modal-content h1 { color: #fff; }
.modal-content button {
    background: var(--color-primary); color: white; border: none;
    padding: 12px 25px; font-size: 1.1em; border-radius: 5px; cursor: pointer; margin-top: 20px;
}
.hidden { display: none; }

/* --- Interfaz de Juego --- */
.game-header {
    background: var(--color-header-bg);
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-display { font-size: 1em; font-weight: 600; }
.infection-rate-container { width: 50%; }
.infection-rate-bar { background: rgba(255,255,255,0.3); border-radius: 10px; padding: 2px; }
#infection-rate-level {
    height: 12px;
    width: 0%;
    background: #FFD700; /* Amarillo de advertencia */
    border-radius: 7px;
    transition: width 0.3s ease-in-out, background-color 0.5s;
}

.feed-area {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--color-bg);
    display: flex;
    flex-direction: column-reverse; /* Para que los nuevos posts aparezcan abajo y suban */
}

/* --- Tarjeta de Publicación --- */
.post-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    animation: slide-up 0.4s ease-out;
}
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.profile-pic { width: 40px; height: 40px; border-radius: 50%; background: #ccc; }
.username { font-weight: 600; color: var(--color-text); }
.post-content { margin: 0 0 15px; color: #4b4f56; }

.post-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-btn {
    padding: 10px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: filter 0.2s;
}
.action-btn:hover { filter: brightness(1.1); }
.action-btn.approve { background-color: var(--color-approve); }
.action-btn.block { background-color: var(--color-block); }

.back-button {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}
