/* Estilos para el listado de sorteos */

.pubsorteo_list {
    padding: 20px 0;
}

/* Espaciado entre filas */
.subsequent-rows {
    margin-bottom: 30px;
}

/* Cards de sorteo */
.sorteo_listado {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sorteo_listado:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Sorteos gratuitos vs borradores */
.sorteo_listado.gratuito {
    border-left: 4px solid #276CB2;
}

.sorteo_listado.borrador {
    border-left: 4px solid #ffc107;
    background-color: #fffbf0;
}

/* Títulos */
.sorteo_listado h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 15px;
}

.sorteo_listado h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.sorteo_listado h2 a:hover {
    color: #276CB2;
    text-decoration: none;
}

/* Información pequeña */
.pubsorteo_small {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Botones de acción */
.sorteo-actions {
    display: inline-block;
    margin: 10px 0;
}

.sorteo-actions .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.sorteo-actions .glyphicon {
    margin-right: 4px;
}

/* Fecha del sorteo */
.sorteo-fecha {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    margin: 10px 0;
    border-left: 3px solid #276CB2;
}

/* Descripción */
.sorteo-descripcion {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categoría */
.sorteo-categoria {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.sorteo-categoria .label {
    font-size: 12px;
    padding: 5px 10px;
    font-weight: 500;
}

/* Área de borrador */
.borrador_area {
    background-color: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.borrador_area .alert {
    margin-bottom: 0;
}

.alert-actions {
    margin-top: 10px;
}

.alert-actions .btn {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Sección de comprar saldo */
#comprar-saldo {
    background: linear-gradient(135deg, #276CB2 0%, #1a5a8e 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(39, 108, 178, 0.3);
}

#comprar-saldo .saldo-actual {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

#comprar-saldo p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.95);
}

#comprar-saldo .btn-primary {
    background-color: white;
    color: #276CB2;
    border: none;
    font-weight: 600;
}

#comprar-saldo .btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .sorteo_listado {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .sorteo_listado h2 {
        font-size: 16px;
    }
    
    .sorteo-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
    
    #comprar-saldo {
        text-align: center;
    }
    
    #comprar-saldo .saldo-actual {
        display: block;
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
}

/* Mejoras generales de botones */
.btn-default {
    transition: all 0.2s ease;
}

.btn-default:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

/* Glyphicons más grandes donde sea necesario */
.large-glyphicon {
    font-size: 16px;
}

/* Eliminación de márgenes innecesarios */
.sorteo_listado > *:last-child {
    margin-bottom: 0;
}