/* Estilos para melhorias visuais */

/* Animações para elementos */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Efeitos de hover para botões */
.btn-primary:hover, .btn-secondary:hover, .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Efeitos para cards e containers */
.feature, .winner, .stat-card, .dashboard-card {
    transition: all 0.3s ease;
}

.feature:hover, .winner:hover, .stat-card:hover, .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Efeitos para raspadinhas */
.raspadinha {
    transition: all 0.3s ease;
}

.raspadinha:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Efeito de destaque para prêmios */
.premio {
    transition: all 0.3s ease;
}

.premio.highlight {
    animation: pulse 1s infinite;
    color: #ff9800;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

/* Efeito para botão de saque */
#btn-ver-valor-ganho {
    animation: fadeIn 0.5s, pulse 2s infinite;
}

/* Pop-up de Ganhador Recente - Versão otimizada para mobile */
.popup {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 220px; /* Reduzido de 300px */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: none;
    animation: slideInRight 0.5s ease-out;
}

.popup-content {
    padding: 8px; /* Reduzido de 15px */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-close {
    position: absolute;
    right: 8px;
    top: 5px;
    font-size: 16px; /* Reduzido de 20px */
    cursor: pointer;
    color: #999;
}

.popup-close:hover {
    color: #666;
}

.popup-icon {
    font-size: 20px; /* Reduzido de 24px */
    margin-bottom: 5px;
}

.popup-message {
    font-size: 12px; /* Reduzido de 14px */
    color: #666;
    margin: 5px 0;
    text-align: center;
    line-height: 1.3;
}

#popup-jogar {
    width: 90%;
    padding: 8px; /* Reduzido de 10px */
    font-size: 12px; /* Reduzido de 14px */
    margin-top: 5px;
}

/* Responsividade para o pop-up */
@media (max-width: 480px) {
    .popup {
        width: 180px; /* Ainda menor para telas muito pequenas */
        bottom: 10px;
        right: 10px;
    }
    
    .popup-content {
        padding: 6px;
    }
    
    .popup-message {
        font-size: 11px;
    }
    
    #popup-jogar {
        padding: 6px;
        font-size: 11px;
    }
}

/* Animação para o botão de WhatsApp */
.whatsapp-button {
    animation: bounce 2s infinite;
    bottom: 70px; /* Aumentado para não sobrepor o popup */
}

/* Efeito de destaque para ganhadores */
.winner {
    position: relative;
    overflow: hidden;
}

.winner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}

/* Efeito de destaque para valores ganhos */
#valor-ganho {
    animation: pulse 2s infinite;
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}
