/* ===================================
   Loterias Brasil Pro - Estilos
   =================================== */

/* Reset e Base */
.lbp-container * {
    box-sizing: border-box;
}

/* Botões */
.lbp-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #209869;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.lbp-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lbp-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.lbp-btn-gerar {
    margin-right: 10px;
}

/* Gerador de Números */
.lbp-gerador-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.lbp-gerador-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.lbp-gerador-header p {
    margin: 0 0 20px 0;
    color: #666;
}

.lbp-numeros-gerados {
    min-height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lbp-placeholder {
    color: #999;
    text-align: center;
}

.lbp-numeros-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lbp-numero-bolinha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #209869;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: aparecer 0.4s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lbp-gerador-actions {
    margin-top: 20px;
    text-align: center;
}

/* Conferidor de Bilhete */
.lbp-conferidor-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.lbp-conferidor-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.lbp-conferidor-header p {
    margin: 0 0 20px 0;
    color: #666;
}

.lbp-conferidor-form {
    margin: 20px 0;
}

.lbp-form-group {
    margin-bottom: 20px;
}

.lbp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.lbp-form-group input,
.lbp-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.lbp-form-group input:focus,
.lbp-form-group select:focus {
    outline: none;
    border-color: #209869;
}

.lbp-form-actions {
    text-align: center;
    margin-top: 20px;
}

/* Resultado da Conferência */
.lbp-conferidor-resultado {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.lbp-resultado-conferencia h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.lbp-numeros-comparacao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.lbp-numeros-coluna p {
    font-weight: 600;
    margin-bottom: 10px;
}

.lbp-numero-acertado {
    background-color: #28a745 !important;
    animation: pulsar 0.5s ease;
}

.lbp-numero-errado {
    background-color: #dc3545 !important;
}

@keyframes pulsar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lbp-resultado-final {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.lbp-acertos-info {
    font-size: 20px;
    margin: 0;
}

/* Próximos Sorteios */
.lbp-proximos-sorteios h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 28px;
}

.lbp-sorteios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lbp-sorteio-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lbp-sorteio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.lbp-sorteio-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.lbp-data-sorteio,
.lbp-premio-estimado {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

/* Últimos Resultados */
.lbp-ultimos-resultados h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 28px;
}

.lbp-resultados-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lbp-resultado-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lbp-resultado-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.lbp-data-resultado {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.lbp-numeros-resultado {
    margin: 15px 0;
}

.lbp-link-ver-mais {
    color: #209869;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.lbp-link-ver-mais:hover {
    color: #186d4c;
}

/* Lista de Loterias */
.lbp-loterias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.lbp-loteria-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lbp-loteria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.lbp-loteria-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lbp-loteria-info {
    padding: 20px;
}

.lbp-loteria-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 22px;
}

.lbp-loteria-descricao {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.lbp-loteria-preco,
.lbp-loteria-dias {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

/* Loading */
.lbp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .lbp-numeros-comparacao {
        grid-template-columns: 1fr;
    }
    
    .lbp-sorteios-grid,
    .lbp-loterias-grid {
        grid-template-columns: 1fr;
    }
    
    .lbp-numero-bolinha {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
