/* Estilos do Sistema de Baús - Big Penhores */

.bau-animado {
    position: relative;
    overflow: visible;
}

@keyframes flutuar {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) scale(0.8);
        opacity: 0;
    }
}

.treasure-value {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.treasure-chest {
    cursor: pointer;
    transition: all 0.3s ease;
}

.treasure-chest:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.5));
}

/* Estilos para diferentes status do baú */
.bau-ativo .treasure-chest {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 212, 170, 0.4));
}

.bau-destaque .treasure-chest {
    filter: drop-shadow(0 0 25px rgba(255, 193, 7, 0.6)) !important;
}

.bau-destaque .treasure-value .card {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.2) !important;
}

.bau-finalizado .treasure-chest {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(108, 117, 125, 0.3)) grayscale(0.3);
    opacity: 0.8;
}

.bau-pausado .treasure-chest {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.3));
    opacity: 0.7;
}

.bau-agendado .treasure-chest {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(54, 185, 204, 0.3));
    opacity: 0.85;
}

/* Badges para níveis */
.badge-nivel.mythic { background: linear-gradient(45deg, #e91e63, #9c27b0); color: white; }
.badge-nivel.legend { background: linear-gradient(45deg, #ff5722, #ff9800); color: white; }
.badge-nivel.diamond { background: linear-gradient(45deg, #00bcd4, #009688); color: white; }
.badge-nivel.platinum { background: linear-gradient(45deg, #607d8b, #455a64); color: white; }
.badge-nivel.gold { background: linear-gradient(45deg, #ffc107, #ff9800); color: white; }
.badge-nivel.silver { background: linear-gradient(45deg, #9e9e9e, #757575); color: white; }
.badge-nivel.bronze { background: linear-gradient(45deg, #795548, #5d4037); color: white; }
.badge-nivel.iniciante { background: linear-gradient(45deg, #4caf50, #388e3c); color: white; }

/* Animação de entrada para linhas do histórico */
.historico-row-enter {
    animation: slideInFromRight 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effect para linhas da tabela */
.tabela-historico-baus tbody tr:hover {
    background-color: rgba(0, 212, 170, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Efeito especial para valores em destaque */
.valor-destaque {
    background: linear-gradient(45deg, #00D4AA, #17A589);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* Container dos vencedores */
.vencedores-container {
    background: transparent !important;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Histórico Cards Mobile - Animações */
.historico-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade para o histórico */
@media (max-width: 768px) {
    .historico-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .historico-card-header .text-end {
        text-align: left !important;
        width: 100%;
    }
    
    .valor-total-badge {
        display: inline-block;
        margin-bottom: 0.25rem;
    }
    
    .ganhador-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ganhador-item .text-end {
        text-align: left !important;
        width: 100%;
    }
}

/* Melhorias nos ganhadores desktop */
.ganhador-desktop {
    transition: all 0.2s ease;
}

.ganhador-desktop:hover {
    background: rgba(0, 212, 170, 0.05) !important;
    transform: translateX(3px);
}

/* Força fundo branco para todos os elementos da tabela */
.tabela-historico-baus,
.tabela-historico-baus *,
.d-none.d-lg-block,
.d-none.d-lg-block *,
.card-body,
.card-body * {
    background: transparent !important;
    background-color: transparent !important;
    color: #000000 !important;
    border: none !important;
}

.tabela-historico-baus .vencedores-container {
    background: transparent !important;
}

/* FORÇA FUNDO TRANSPARENTE - CSS INJECTED VIA JS */
.table, .table *,
.table-striped, .table-striped *,
.table tbody tr, 
.table tbody td {
    background: transparent !important;
    background-color: transparent !important;
    color: #000000 !important;
    border: none !important;
}

/* Força cabeçalho cinza */
.bg-gray-100, .bg-gray-100 * {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    color: #000000 !important;
}

/* Melhoria nos badges de nível */
.badge-nivel {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

/* Títulos e textos melhorados */
.historico-card-header .text-dark {
    color: #2c3e50 !important;
}

.historico-card .ganhador-item .fw-bold {
    color: #2c3e50 !important;
    font-size: 0.85rem;
}

/* Efeito hover nos cards mobile */
.historico-card:hover .ganhador-item {
    transform: translateX(2px);
}

/* Badge especial para o primeiro lugar */
.ganhador-item.primeiro {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05)) !important;
    border-left-color: #ffd700 !important;
    border-left-width: 4px !important;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.1);
}

.ganhador-item.segundo {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05)) !important;
    border-left-color: #c0c0c0 !important;
    border-left-width: 3px !important;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.1);
}

.ganhador-item.terceiro {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05)) !important;
    border-left-color: #cd7f32 !important;
    border-left-width: 3px !important;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.1);
}

/* Contador de tempo */
.bau-contador-tempo {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 