/* ================================================= */
/*          ESTILO PARA O EVENTO MANIA DE MISSÕES    */
/* ================================================= */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #333;
}
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}
.logo-site {
    width: 200px;
}
#tituloEvento, h2 {
    color: #333;
    margin-top: 20px;
}
#event-duration {
    color: #555;
    font-weight: 500;
    margin-bottom: 20px;
}
.container {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 1100px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.back-to-site {
    text-align: center;
    margin-top: 30px;
}
.back-to-site a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #20b1d9;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.back-to-site a:hover {
    background-color: #1a8cb5;
}

/* --- ESTILOS GERAIS PARA BOTÕES --- */
.event-button {
    background-color: #20b1d9; color: white; padding: 10px 20px;
    border: none; border-radius: 10px; cursor: pointer;
    font-size: 16px; transition: background-color 0.3s;
    margin-top: 15px;
}
.event-button:hover { background-color: #1a8cb5; }
.event-button:disabled { background-color: #ccc !important; cursor: not-allowed; }
.gift-claimed-message { margin-top: 20px; font-style: italic; color: #888; }

/* --- SEÇÃO DE INFO --- */
#info-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    background-color: #e9f7fe;
    border: 1px solid #bce8f1;
    display: none; /* Começa escondido */
}
#info-section p { color: #31708f; margin: 0; line-height: 1.6; }

/* --- GRID DE MISSÕES --- */
#mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 20px;
}
.mission-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.mission-card .day {
    font-size: 1.2em;
    font-weight: 700;
    color: #20b1d9;
}
.mission-card .reward-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    min-height: 40px;
    margin: 5px 0;
}
.mission-card .description {
    font-size: 0.8em;
    color: #666;
    margin: 5px 0 10px 0;
    flex-grow: 1;
}
.mission-card button {
    background-color: #20b1d9;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
}
.mission-card button:hover { background-color: #1a8cb5; }
.mission-card button[disabled] { background-color: #ccc !important; cursor: not-allowed; color: #666; }

/* --- ESTADOS DAS MISSÕES --- */
.mission-card.completed { border-color: #28a745; }
.mission-card.completed button { background-color: #28a745; }
.mission-card.completed button:hover { background-color: #218838; }

.mission-card.collected { border-color: #17a2b8; }
.mission-card.collected .day { color: #17a2b8; }
.mission-card.collected button { background-color: #6c757d; }
.mission-card.collected::before {
    content: '✔'; font-size: 1.5em; color: white; background-color: #17a2b8;
    border-radius: 50%; width: 25px; height: 25px; line-height: 25px;
    position: absolute; top: 5px; right: 5px;
}
.mission-card.active { border-color: #ffc107; }
.mission-card.active button { background-color: #6c757d; }

.mission-card.locked {
    filter: grayscale(90%);
    opacity: 0.7;
    background-color: #e9ecef;
}
.mission-card.locked:hover { transform: none; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.mission-card.locked button { background-color: #f44336; }

/* --- ÍCONE E CONTAINER --- */
.card-icon-container {
    width: 80px; height: 80px; margin: 10px auto;
    display: flex; align-items: center; justify-content: center;
}
.card-icon-container img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}
.card-icon-container .fas.fa-lock {
    font-size: 50px; color: #cccccc;
}

/* --- GRANDE PRÊMIO --- */
#grand-prize-section {
    text-align: center; margin-top: 40px; padding-top: 20px;
}
#grand-prize-section.locked {
    opacity: 0.6; filter: grayscale(80%);
}
#grand-prize-section hr {
    border: 0; height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    margin-bottom: 20px;
}
#grand-prize-section h3 {
    color: #c49511; font-size: 1.8em;
}
#grand-prize-options {
    display: flex; justify-content: center; gap: 20px;
    flex-wrap: wrap; margin-top: 20px;
}
.prize-option-card {
    background-color: #fff; border: 2px solid #ddd; border-radius: 15px;
    padding: 15px; width: 200px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#grand-prize-section.unlocked .prize-option-card {
    border-color: #c49511;
}
.prize-option-card img {
    width: 80px; height: 80px; object-fit: contain;
}
.prize-option-card .reward-name {
    font-weight: 600; color: #333; margin-top: 10px; min-height: 40px;
}
.prize-option-card button {
    width: 100%; margin-top: 15px;
}

/* ESTILOS PARA BOTÕES DE AJUDA */
.help-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.help-button {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}
.help-button:hover {
    transform: scale(1.05);
}
.help-button.youtube {
    background-color: #FF0000;
}
.help-button.whatsapp {
    background-color: #25D366;
}

/* ================================================= */
/*          ESTILO PARA O LOADING SPINNER            */
/* ================================================= */
.loading-spinner {
    border: 4px solid #f3f3f3; /* Cinza claro */
    border-top: 4px solid #20b1d9; /* Sua cor principal */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Centraliza o spinner */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}