/**
 * ESTILOS COTAS PREMIADAS - VERSÃO FINAL
 * Design moderno e limpo
 */

/* ========================================
   SEÇÃO PRINCIPAL
   ======================================== */

.cotas-minimalistas {
    background: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
    margin: 1.5rem 0;
    border: 1px solid #eceff3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.cotas-minimalistas-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.cotas-minimalistas-header h2 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #111827;
    margin: 0;
}

.cotas-filtro-rifa {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.85rem;
    color: #4b5563;
}

.cotas-filtro-rifa select {
    flex: 1;
    border: 1px solid #d7dce3;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
}

.cotas-filtro-rifa select:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.cotas-minimalistas-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    background: #f4f4f5;
    border-radius: 12px;
    padding: 0.2rem;
}

.tab-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    background: transparent;
    padding: 0.5rem;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    position: relative;
}

.tab-indicador {
    background: #e5e7eb;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.35rem;
    display: inline-block;
    min-width: 24px;
    text-align: center;
}

.tab-btn.active .tab-indicador {
    background: #eef2ff;
    color: #4338ca;
}

.cotas-minimalistas-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cota-minimalista-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid #eff1f5;
    background: #fff;
    align-items: center;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.cota-minimalista-numero {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 0.45rem 0.6rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #111827;
    font-family: 'Space Mono','Courier New',monospace;
}

.cota-minimalista-premio .premio-nome {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.cota-minimalista-premio .premio-rifa {
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.cota-minimalista-status {
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-flex;
    background: currentColor;
}

.cota-minimalista-status.disponivel {
    color: #16a34a;
    background: #e9f9ef;
}

.cota-minimalista-status.sorteado {
    color: #9333ea;
    background: #f5ebff;
}

.cotas-minimalistas-empty {
    text-align: center;
    padding: 1rem;
    color: #9ca3af;
    font-weight: 600;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
}

.btn-ver-mais-minimalista {
    width: 100%;
    margin-top: 0.8rem;
    border: none;
    background: #f4f4f5;
    border-radius: 12px;
    padding: 0.7rem;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
}

.btn-ver-mais-minimalista:hover {
    background: #e4e4e7;
}

/* Info */
.cota-info {
    flex: 1;
}

.cota-premio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.premio-icone {
    font-size: 1.2rem;
}

.premio-texto {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.cota-rifa {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

/* Status */
.cota-status {
    text-align: right;
}

.badge-disponivel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.badge-sorteado {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(17, 153, 142, 0.3);
}

/* ========================================
   MODAL DE PRÊMIO GANHO
   ======================================== */

.modal-premiado-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
}

.modal-premiado-overlay.ativo {
    opacity: 1;
}

.modal-premiado {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalEntrada 0.5s ease-out;
}

@keyframes modalEntrada {
    from {
        transform: scale(0.7) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-premiado-confete {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: confete 1s infinite;
}

@keyframes confete {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.modal-premiado-icone {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: trofeu 1s ease-in-out infinite;
}

@keyframes trofeu {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-premiado-titulo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #667eea;
    margin: 0 0 1rem 0;
}

.modal-premiado-texto {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.modal-premiado-numero {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.modal-premiado-premio {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.modal-premiado-premio .premio-icone {
    font-size: 2rem;
}

.btn-modal-premiado {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-premiado:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .cotas-premiadas-secao {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .cotas-titulo {
        font-size: 1.5rem;
    }
    
    .cotas-subtitulo {
        font-size: 0.85rem;
    }
    
    .stat-numero {
        font-size: 2rem;
    }
    
    .cota-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .cota-numero {
        font-size: 1.8rem;
        width: 100%;
    }
    
    .cota-info {
        order: 2;
    }
    
    .cota-status {
        order: 3;
        text-align: center;
    }
    
    .badge-disponivel,
    .badge-sorteado {
        display: inline-block;
        width: auto;
    }
    
    .modal-premiado {
        padding: 2rem 1.5rem;
    }
    
    .modal-premiado-titulo {
        font-size: 2rem;
    }
    
    .modal-premiado-numero {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cotas-icone {
        font-size: 2.5rem;
    }
    
    .cotas-titulo {
        font-size: 1.3rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .premio-texto {
        font-size: 1rem;
    }
}

