/* --- SPLASH SCREEN (NOVO) --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary); /* Cor primária do tema */
    color: var(--secondary);          /* Cor secundária do texto */
    z-index: 99999; /* Garante que fique acima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: fadeUp 0.8s ease-out;
}

.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.splash-logo i {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.splash-logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    animation: spin 1s linear infinite;
}

/* --- ESTILOS ESPECÍFICOS DA PÁGINA DE RESULTADOS --- */

/* CORREÇÃO BODY: Mantém o gradiente para legibilidade, mas remove background-color */
/* A cor de fundo base virá do theme.css (var(--light-bg)) */
body {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 400px);
    background-repeat: no-repeat;
    background-position: top center;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toggle-container {
    text-align: center;
    margin-bottom: 25px;
}

/* Botão de Alternar Versão - Padronizado com Variáveis */
.btn-toggle-version {
    background-color: var(--primary);
    color: var(--secondary);
    border: var(--btn-border-width) solid var(--btn-border-color);
    box-shadow: var(--btn-shadow);
    padding: 12px 25px;
    border-radius: var(--radius);
    font-weight: bold;
    font-family: var(--btn-font-family, sans-serif);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-toggle-version:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Card de Resultado */
.result-card {
    background: #fff; /* Mantido branco para leitura clara das tabelas */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--section-shadow);
    margin-bottom: 30px;
    border: var(--section-border-width) solid var(--section-border-color);
    animation: fadeUp 0.6s ease-out;
}

/* Header do Card */
.result-header {
    background: var(--primary);
    color: var(--secondary);
    padding: 15px 60px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    text-align: center;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Botão de Compartilhar */
.btn-share-result {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--secondary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.btn-share-result:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Tabela */
.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    background: #f0f0f0;
    color: #333;
    padding: 12px 10px;
    font-size: 0.8rem;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 700;
    font-size: 1rem;
}

.result-table tr:last-child td { border-bottom: none; }
.result-table tr:nth-child(even) { background-color: #fcfcfc; }

/* Área de Estatísticas */
.stats-area {
    background: #f9f9f9;
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.stats-total {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stats-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.stats-details span {
    font-weight: 600;
    background: #eee;
    padding: 4px 10px;
    border-radius: 12px;
}

.stats-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-stat {
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.btn-check {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.btn-check:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-guess {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.btn-guess:hover { background: #f0f8ff; }

/* Loading & Erro */
.loading-container {
    text-align: center;
    padding: 50px;
    color: var(--primary);
    font-size: 1.5rem;
}

/* --- ESTILOS DO PLACEHOLDER (AGUARDANDO RESULTADO) --- */
.pending-content {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f4fdf4);
}

.pending-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
    animation: pulse-gray 2s infinite;
}

.pending-title {
    color: #555;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pending-desc {
    color: #777;
    font-size: 0.95rem;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.5;
}

.pending-badge {
    display: inline-block;
    background: #e0e0e0;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 15px;
    border: 1px solid #ccc;
}

/* Botão Destaque para Palpites Futuros */
.btn-future-guess {
    background: var(--primary);
    color: var(--secondary);
    border: var(--btn-border-width) solid var(--btn-border-color);
    box-shadow: var(--btn-shadow);
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    animation: pulseBtn 2s infinite ease-in-out;
}

.btn-future-guess:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Botão de Fézinha no Modal (COM EFEITO SHINY) */
.btn-fezinha {
    /* Fundo gradiente para o efeito de reflexo */
    background: linear-gradient(110deg, #0c7536 30%, #25D366 50%, #0c7536 70%);
    background-size: 200% 100%;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* Animação contínua */
    animation: shine 3s infinite linear;
}
.btn-fezinha:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- ESTILOS DO CALENDÁRIO / DATE PICKER (ATUALIZADO) --- */
.calendar-display-text {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-transform: capitalize;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Container Principal em Linha */
.picker-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Coluna Individual (Dia, Mês, Ano) */
.picker-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.picker-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
}

.picker-value {
    background: #f4f4f4;
    padding: 10px 5px;
    border-radius: 8px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
}

.picker-value.month-value {
    min-width: 110px;
    text-transform: capitalize;
    font-size: 0.95rem;
}

.picker-value.year-value {
    min-width: 80px;
}

/* Container das Setas (Abaixo do Card) */
.picker-arrows {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.btn-picker {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-picker:hover {
    filter: brightness(1.1);
    transform: scale(1.1);
}

/* Links Rápidos (Hoje, Ontem...) */
.quick-date-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.quick-date-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px;
    border-radius: 6px;
    transition: 0.2s;
    background: rgba(0,0,0,0.03);
    cursor: pointer;
}

.quick-date-link:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-search-date {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: var(--btn-shadow);
    border: var(--btn-border-width) solid var(--btn-border-color);
    transition: 0.3s;
    text-transform: uppercase;
}
.btn-search-date:hover {
    transform: scale(1.02);
}

/* Estilo para lista de dias na modal de horários */
.horarios-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.dia-block {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.dia-header {
    background: #f0f0f0;
    padding: 10px;
    font-weight: bold;
    color: #555;
    text-align: center;
    font-size: 0.95rem;
}

.dia-block.current-day {
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dia-block.current-day .dia-header {
    background: var(--primary);
    color: var(--secondary);
}

.horarios-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.horarios-li {
    padding: 8px;
    border-bottom: 1px solid #f9f9f9;
    color: #333;
    font-size: 0.9rem;
}
.horarios-li:last-child { border-bottom: none; }


/* --- NOVOS ESTILOS PARA LISTA DE ACERTOS (ATUALIZAÇÃO) --- */

/* Estilo para cada linha de acerto */
.acerto-line {
    list-style: none; /* Remove bolinha padrão */
    position: relative;
    padding-left: 28px; /* Espaço para o ícone */
    margin-bottom: 12px;
    line-height: 1.3;
    color: #333;
    font-weight: 500;
}

/* Ícone de check usando pseudo-elemento (FontAwesome) */
.acerto-line::before {
    content: '\f058'; /* Código do ícone fa-check-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary); /* Usa cor do tema ou #27ae60 */
    font-size: 1.1rem;
}

/* Classe gerada pelo Code.gs para o texto "com o palpite..." */
.palpite-info {
    display: block; /* Força quebra de linha */
    font-size: 0.8rem;
    color: #999; /* Cinza claro */
    font-weight: normal;
    margin-top: 3px;
    font-style: italic;
}

/* Animação do reflexo */
@keyframes shine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes pulse-gray {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .result-table th, .result-table td { font-size: 0.85rem; padding: 10px 5px; }
    .stats-details { gap: 8px; font-size: 0.8rem; }
    .result-header { padding: 15px 50px; font-size: 1rem; }
    .btn-toggle-version { width: 100%; justify-content: center; }
    .btn-future-guess { width: 100%; justify-content: center; }
    
    .hero-subtitle-block {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        
    }
}
